Specify priority of asynchronous task represented by referenced model triggered by asynchronous interrupt
Simulink Coder / Asynchronous
The Asynchronous Task Specification block specifies parameters, such as the task priority, of an asynchronous task represented by a function-call subsystem with a trigger from an asynchronous interrupt. Use this block to control scheduling of function-call subsystems with triggers from asynchronous events. You control the scheduling by assigning a priority to each function-call subsystem within a referenced model.
To use this block, follow the procedure in Convert an Asynchronous Subsystem into a Model Reference.
Observe in the figure:
The block must reside in a referenced model between a root-level Inport block and a function-call subsystem. The Asynchronous Task Specification block must immediately follow and connect directly to the Inport block.
The Inport block must receive an interrupt signal from an Async Interrupt block that is in the parent model.
The Inport block must be configured to receive and send function-call trigger signals.