I can't run my Simulink model due to "loading-forever" problem

2 次查看(过去 30 天)
This is an image of the model I am trying to run, I don't know if there is an issue in the model somewhere that makes it run into a loop or something. After I click on the "Monitor&Tune" button under "Hardware", it just loads forever and doesn't seem to go anywhere or give results from that point.

回答(1 个)

Maneet Kaur Bagga
Hi,
As per my understanding, your Simulink model is hanging indefinetely after clicking "Monitor and Tune". Please refer to the following as a possible workaround for your issue.
Your model may contain an algebraic loop because the PID controller output is directly fed back into a summation. Simulink cannot resolve loops without delays. Therefore. you can insert a "Unit Delay" or "Transfer Fcn" block between the summation and the PID input feedback path.
The "scope" block is not supported during "Monitor and Tune". Also, "Monitor and Tune" uses "Serial over USB" to communicate therefore, go to the following path to check the settings.
Model Settings > Hardware Implementation > Target Hardware Resources > Host Communication
Please refer to the following MathWorks documentation for better understanding:
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Classical Control Design 的更多信息

标签

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by