Get Overload Counter returns number of CPU overloads
Simulink® Real-Time™ Library for Execution Parameters
This block returns the CPU overload count. To display the value, connect the block
output to a real-time Scope block. To achieve your required
refresh rate, adjust the
Scope block parameter Number of samples to a
small number, such as
For multirate models in multitasking mode, Get Overload Counter returns the number of overloads of the base rate task.
Enter the base sample time or a multiple of the base sample
-1 means sample time is inherited).