Get CPU load

Block to get the CPU load of the system

Description

A 'Get CPU load' block gets the CPU load of the system.

This block can be used to get the CPU load of all registered tasks and interrupt service routines. Idle task is not included.

Output

CPU load as a percentage.

Parameters
Mode
Select if the block should read the current CPU load or the maximum measured CPU load since reset.
Sample time
Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model.