Skip to Main Content Skip to Search
Product Documentation

Asynchronous Task Specification - Allow for parameter specifications for asynchronous tasks associated with root-level Inport blocks that output a function-call trigger

Library

Asynchronous

Description

The Asynchronous Task Specification block, in combination with a root-level Inport block, allows for an asynchronous function-call input to a model reference.

To implement this feature, place this block at the output port of each root-level Inport block that outputs a function-call trigger. On the Signal Attributes pane of the Inport block, select Output function call to specify that the Inport block accepts function-call signals. Then use the Asynchronous Task Specification blocks to specify the asynchronous task parameters associated with the respective Inport blocks.

Data Type Support

This specification does not apply to the Asynchronous Task Specification block; the block accepts only function-call signals.

Parameters and Dialog Box

The Function Block Parameters dialog box of the Asynchronous Task Specification block appears as follows:

Task priority

Specifies the priority of the asynchronous task calling the destination function-call subsystem. The priority must be a value that generates relevant rate transition behaviors.

Settings

Default: 10

Command-Line Information

This block has only one parameter.

Parameter: TaskPriority

Value: integer

Configuration Parameters Settings

To create an asynchronous model reference containing a Function-Call and an Asynchronous Task Specification block, you must follow the procedure outlined in Convert an Asynchronous Subsystem into a Model Reference. One of the steps requires that you make several changes to configuration parameters.

Additional configuration parameters that require attention are the solver Type and the Fixed step size (fundamental sample time) on the Solver pane. Both the top model and the model reference must use a fixed-step solver. Moreover, the submodel must have a fundamental sample time that is an integer multiple of the fundamental sample time of the top model.

Examples

Asynchronous Function-Call Input to Model

This root-level model uses the Inport block with the Asynchronous Task Specification block to allow a function-call input signal to a model reference. The priority is set to 10.

The Asynchronous Task Specification block must immediately follow the Inport block. Also, no branch can emanate from the signal connecting the Inport block to the Asynchronous Task Specification block.

Setting Priorities

For this model, if the Asynchronous Task Specification block is set to the default value of 10, then the Async Interrupt block must also have a priority of 10.

Whereas, if the priority of the Asynchronous Task Specification block is set to the empty matrix, [], then the Async Interrupt can have any value.

Characteristics

Direct Feedthrough

Yes

Sample Time

Inherited from the driving block

Scalar Expansion

N/A

Dimensionalized

No

Multidimensionalized

No

Zero-Crossing Detection

No

See Also

Function-Call Subsystem block

Handle Asynchronous Events

Referencing a Model

Inport block

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS