Model Error when running simulink real-time with Speedgoat
94 views (last 30 days)
Show older comments
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
Answers (1)
Shuba Nandini
on 4 Oct 2023
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 error occurs, the Simulink Real-Time RTOS halts model execution shows an error in this way.
mCPUOverload: Sub-rate exception: Overload limit (0) exceeded in 0.02s rate with 1 overloads
If you allow the overload, 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 long initialization time. For some real-time applications, normal initialization can extend beyond the first sample time. Use the SLRT Overload Options block to increase the number of startup time steps to ignore overloads. By default, only the first time step ignores overloads.
Kindly refer to the following documentation to know more on troubleshooting Overloaded CPU from Executing Real-Time Application and "SLRT Overload Options" block:
Hope this helps!
Regards,
Shuba Nandini
0 Comments
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!