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

9 visualizaciones (últimos 30 días)

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?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 13 de Nov. de 2024 a las 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.

Más respuestas (0)

Categorías

Más información sobre Get Started with Simulink Real-Time en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by