Periodic Trigger
This MotoHawk™ block associates the function with the definition of a periodic trigger.
Block ID
motohawk_periodic_trigger
Library
motohawk_tasking_lib/Trigger Blocks
Description
This MotoHawk™ block associates the function defined in the Simulink Function-Call subsystem with the periodic trigger definition created in the MotoHawk™ Periodic Trigger Definition block.
The name of the definition to which the function will be linked must be specified in the Reference Name parameter.
The associated function will be called at the Trigger Interval (us) specified in the MotoHawk™ Periodic Trigger Definition block.
The Task Name parameter specifies the task in which the function will be called.
The Execution Order within Task (Lower executes first) parameter specifies the order in which functions associated with the same periodic trigger definition and in the same task are executed. A lower value means higher execution priority. Functions with the same value will be executed in an order that depends on the implementation.
This block cannot be placed in other triggered subsystems due to its independent periodic execution.
Block Parameters
| Parameter Field | Values | Comments/Description |
|---|---|---|
| Name | Alpha-numeric text, single-quote enclosed | Unique trigger function name. For example this can be the name of the functionality that will be triggered. No special characters, such as spaces, dashes or commas (underscore allowed). A name will be constructed if left empty. |
| Reference Name | Alpha-numeric text, single-quote enclosed | The Name of the periodic trigger definition to which the specified function is to refer. |
| Execution Order within Task (Lower executes first) | Integer | Specifies the order in which functions associated with the same periodic trigger definition are executed within the same task. A lower value indicates higher priority. |
| Task Name | Alpha-numeric text, single-quote enclosed | The name of the task that this triggered function will be executed within. |
