need help on trouble shooting my Simulink controller model

조회 수: 5 (최근 30일)
Randy Chen
Randy Chen 2021년 10월 10일
편집: Aniket 2025년 1월 30일
I have created a simulink model for an inverted airfoil mounted on a moving cart (very similar to the inverted cart-pendulum). I created a subsystem from my plant model and then added a PID control loop around it. However, I'm getting this error:
I tried reducing the strep size in Solver under Configuration Parameters, but it did not work. Attached here is my model, could someone please give me some suggestions?
I also attached a PDF file that includes my derivation of equations of motion and the numerical values for each parameter I've used
  댓글 수: 2
Salman Ahmed
Salman Ahmed 2021년 10월 14일
Hi,
Could you share the related parameter values loaded in your MATLAB workspace like m, l, g?
Randy Chen
Randy Chen 2021년 10월 15일
yes I have all the constants defined in the PDF

댓글을 달려면 로그인하십시오.

답변 (1개)

Aniket
Aniket 2025년 1월 30일
편집: Aniket 2025년 1월 30일
I am assuming the derivations mentioned in attached PDF are correct and have verified that the model is in line with the derivations. When I tried reproducing the issue, I received the same error message. As stated in Diagnostic viewer, the value of "theta_dot" seems to grow exponentially to cross infinity, and hence MATLAB outputs NaN after 18 time steps. I also logged other signals, and found similar issues with "x_dot". Because of this, the "Force_x" also explodes after certain time steps (See below attached screenshots for reference).
At time step: 8
At time step: 9
I suggest debugging your model step-by-step using "Step Forward" simulation and verifying the cause of this exponential increase in signal values. Also check the derivations for any errors.
Additionally, kindly ensure that initial conditions for Unit Delay and Integrator blocks (default: 0) are set appropriately.
I hope this helps resolve the issue!

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by