Main Content

Allow multiple tasks to access inputs and outputs

Option to treat root-level input and output ports as part of each connected task in rate-based model

Since R2021b

Model Configuration Pane: Solver

Description

The Allow multiple tasks to access inputs and outputs parameter specifies how the software provides data to each task when root-level input or output ports connect to multiple tasks with different sample times.

This parameter does not apply for export-function models.

Settings

off (default) | on
off

When multiple tasks access data for root-level input and output ports, the software uses the greatest common denominator sample time that has an implicit task.

on

The software assigns root-level input and output ports connected to multiple tasks a union sample time that includes each task sample time.

Programmatic Use

Parameter: AllowMultiTaskInputOutput
Type: string | character vector
Value: "on" | "off"
Default: "off"

Version History

Introduced in R2021b