Model Error when running simulink real-time with Speedgoat
    26 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Hoang Quan LE
 el 21 de Jun. de 2022
  
    
    
    
    
    Respondida: Stefanie Schwarz
    
 el 27 de Abr. de 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 comentarios
Respuesta aceptada
  Shuba Nandini
    
 el 4 de Oct. de 2023
        
      Editada: Stefanie Schwarz
    
 el 27 de Abr. de 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 comentarios
Más respuestas (1)
  Stefanie Schwarz
    
 el 27 de Abr. de 2025
        See also the following MATLAB Answer for more tips:
0 comentarios
Ver también
Categorías
				Más información sobre Target Computer Setup 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!




