Why does my Simulink Real-Time model stop with an "Overload limit exceeded" error?

조회 수: 9 (최근 30일)

I have a Simulink model I want to deploy on a Speedgoat target machine. The model runs fine on the development computer, but when I select "Run on target" the simulation appears to fail at the second time step and an CPU Overload error is shown:

Executing the 'DisconnectConfirmed'command produced the following error:
Application 'myModel' received an error running on target 'TargetPC1':Overload limit (0) exceeded in 0.001s rate (tid=0) with 1 overloads
Why is this happening?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2024년 11월 13일 0:00
This message means that the target computer was unable to complete all of the calculations needed for a time step before the next time step began.
See the following documentation for details:
To resolve this issue, consider one of the following solutions:
1. Increase the model step size
until the model is able to simulate on the target machine. Note that different Speedgoat machines have different CPUs, so a step size that works on one target machine might not always be able to run on another one. 
If you have multiple rates in your model, consider increasing the step size for each rate.
2. Use Execution Profiler
to identify bottlenecks in your SLRT application:
3. Apply explicit partitioning
to enhance concurrent execution of a real-time application:
4. Add a CPU Overload Options block
to your model to allow a limited number of overloads to occur for uses where the given application is tolerant and won't lose a significant amount of data. However, allowing overloads can cause incorrect results. Please see:
5. Configure 'Measure function execution times' to be Off
under Code Generation > Verification in the model configuration parameters.
6.
If you are using multiple Speedgoats, verify the MAC addresses are configured correctly.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Simulink Real-Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by