Asynchronous Task Specification
R2026bSpecify priority of asynchronous task represented by referenced model triggered by asynchronous interrupt
Libraries:
Simulink Coder /
Asynchronous
Description
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 Asynchronous Subsystem to a Referenced Model.
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 combination of these two blocks constitutes the modeling style known as JMAAB-B.
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.

Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"rtwlib/Asynchronous/Asynchronous Task Specification"
Example: add_block("rtwlib/Asynchronous/Asynchronous Task Specification","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2011a

