Get Overload Counter

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 Simulink Real-Time Scope block parameter Number of samples to a small number, such as 10.

For multirate models in multitasking mode, Get Overload Counter returns the number of overloads of the base rate task.

Block Parameters

Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

Introduced in R2014a

Was this topic helpful?