I can't run my Simulink model due to "loading-forever" problem
9 views (last 30 days)
Show older comments
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.0 Comments
Answers (1)
Maneet Kaur Bagga
on 9 Apr 2025
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!
0 Comments
See Also
Categories
Find more on Classical Control Design in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!