Documentation

If Action Subsystem

Subsystem whose execution is triggered by If block

  • Library:
  • Ports & Subsystems

Description

The If Action Subsystem block is a Subsystem block preconfigured as a starting point for creating a subsystem whose execution is triggered by an If block.

All blocks in an If Action Subsystem block must run at the same rate as the driving If block. You can achieve this requirement by setting each block's sample time parameter to be either inherited (-1) or the same value as the If block sample time.

Ports

Input

expand all

Placing an Inport block in a subsystem block adds an external input port to the block. The port label matches the name of the Inport block.

Use Inport blocks to get signals from the local environment.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean | fixed point | enumerated | bus

Placing an Action Port block in a subsystem block adds an external input port to the block and changes the block to an If Action Subsystem.

Dot-dash lines from an If block to an If Action Subsystem block represent Action signals. Action signals control the execution of a subsystem.

Data Types: action

Output

expand all

Placing an Outport block in a subsystem block adds an output port from the block. The port label on the subsystem block is the name of the Outport block.

Use Outport blocks to send signals to the local environment.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean | fixed point | enumerated | bus

Introduced before R2006a

Was this topic helpful?