Thread Trigger
Call downstream function-call subsystem when selected input edge transition occurs
Since R2020b
Libraries:
Simulink Real-Time /
Async
Description
The Thread Trigger block calls the downstream Function-Call Subsystem block or Triggered Subsystem block and sets the interrupt priority of the task when the selected input edge transition occurs. The block checks for the edge transition at the block sample rate.
If the input transition occurs while the task is running, a CPU overload occurs on the Speedgoat® target computer.
You can use a Thread Trigger block with a Function-Call Subsystem block that resides inside a referenced model as shown in
the figure. This approach is compatible with Simulink®
Coder™. Because the Thread Trigger block output signal is asynchronous
and Simulink
Coder does not permit an asynchronous output block inside a referenced model, place
the Thread Trigger block at the top level of the model. This approach does not
permit explicit partitioning. Remember to match the Asynchronous Task Specification priority
(P:245
) to the priority selected in the Thread Trigger
block. For more information, see About RTOS Tasks and
Priorities.