Model Error when running simulink real-time with Speedgoat
52 views (last 30 days)
Show older comments
Hoang Quan LE
on 21 Jun 2022
Answered: Stefanie Schwarz
on 27 Apr 2025
Hi everyone,
I've a problem when building the model and running the simulation real time. I built it successfully on speedgoat target machine, but when I run the application it ran for 106 sec and it raised an error. (I set the simulation time is inf) I've attached a screenshot for information. I couldn't know how to fix it because there's no diagnostic view to know what happen with my model. Is there anyone who is familliar with this one can help me?
Thank you very much.
3 Comments
Accepted Answer
Shuba Nandini
on 4 Oct 2023
Edited: Stefanie Schwarz
on 27 Apr 2025
Hello,
It is my understanding that you are facing the issue in running the application in Simulink Real-Time when the simulation time is set for ‘Inf’.
Model has stopped due to CPU Overload limit has exceeded. A CPU overload indicates that the CPU is unable to complete processing a model time step before restarting for the next time step. When this occurs, the Simulink Real-Time RTOS halts model execution shows an error in this way.
Overload limit (x) exceeded in 0.001s (tid=0) rate with y overloads
If you allow overloads (in your case 100), model execution continues until the allowed overload limit is reached. If the model continues to run after a CPU overload, the time step lasts as long as the time required to finish the execution. Model design or target computer resources can cause CPU overloads.
As a workaround, permit longer initialization time. Adjust the SLRT Overload Options block "Max Overloads" value to increase the number of time steps to ignore overloads.
Kindly refer to the following documentation to know more on Troubleshooting Overloaded CPU and the "SLRT Overload Options" block:
Hope this helps!
Regards,
Shuba Nandini
0 Comments
More Answers (1)
See Also
Categories
Find more on Target Computer Setup 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!