need help on trouble shooting my Simulink controller model

7 次查看(过去 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

回答(1 个)

Aniket
Aniket 2025-1-30,9:04
编辑:Aniket 2025-1-30,9:08
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