Model Error when running simulink real-time with Speedgoat

95 次查看(过去 30 天)
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.

回答(1 个)

Shuba Nandini
Shuba Nandini 2023-10-4
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

Community Treasure Hunt

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

Start Hunting!

Translated by