Get Trigger CPU

This MotoHawk™ block allows the recovery of the CPU utilization data for a trigger like the Common Event Trigger that has been setup to capture this data.

Block ID

Get Trigger CPU

Library

motohawk_tasking_lib/Metrics

Description

This MotoHawk™ block allows the recovery of the CPU utilization data for a trigger like the Common Event Trigger. Such data is only available when the trigger has been configured to capture that data. An error will result during Simulink Update if the requested trigger does not exist, does not support CPU utilization measurement or hasn't been configured to capture CPU utilization data.

Block Parameters

Parameter Field Values Comments/Description
Trigger Name Single quote enclosed alpha-numeric text The requested CPU utilization data will be recovered from this named trigger.
Data Drop down
Latest CPU
Maximum CPU
Selects the utilization data to be recovered. Latest CPU will be the percent of the CPU that was utilized by the trigger in the last execution performance time slice. Maximum CPU is the observed maximum since the data was last zeroed.
Get CPU as Dropdown Specifies whether the recovered data is represented as a fixed point value (65535 represents 100%) or as a floating point value.
Action on Read Dropdown Defines an action to apply after the data is read. Only visible when applicable to the data. For instance the maximum can be zeroed after it has been read, which would effectively reset the attribute so that a new maximum could be obtained. Perhaps the application desires to know what the maximum execution is from when a particular event has been observed. Zeroing the maximum as side effect of the read would allow this to occur.