Difference between revisions of "HANcoder/STM32/Blocks/Get CPU Load"

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Jump to: navigation, search
(Created page with "{{HANcoder/block| info= 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 routi...")
 
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
|maskImage=
 
|maskImage=
 
GetCPULoadMask.png
 
GetCPULoadMask.png
 +
}}
  
 +
== Block outputs (outports) ==
 +
The current or maximum CPU load.[uint8]<br/>
  
 +
== Block parameters ==
 +
{| class="wikitable"
 +
|-
 +
! style="width:150px" | Parameter
 +
! Description
 +
|-
 +
| Mode
 +
| Select between the current or the maximum CPU load.
 +
|-
 +
| 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.
 +
|}
 +
 +
{{HANcoder/BlockFooter|
 +
|SeeAlso = [[HANcoder/STM32/Blocks/Get_Free_Heap|Get Free Heap]] {{!}} [[HANcoder/STM32/Blocks/Get_Free_Stack|Get Free Stack]]
 
}}
 
}}

Latest revision as of 11:33, 5 May 2017

Supported Targets: Olimexino, E407, P405

General information about Get CPU Load

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.

Block

GetCPULoad.png

Mask

GetCPULoadMask.png

Block outputs (outports)

The current or maximum CPU load.[uint8]

Block parameters

Parameter Description
Mode Select between the current or the maximum CPU load.
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.

See Also

Get Free Heap | Get Free Stack