Documentation

Logically Executed Subsystems

Control the sequence of subsystem execution by evaluating a logical expression

A logically executed subsystem runs one or more times at the current time step when enabled by the signal from a control block. A control block implements control logic similar to that expressed by a programming language statement (e.g., if-then, while-do, switch, for).

Blocks

If Action SubsystemSubsystem whose execution is triggered by If block
IfModel if-else control flow
Switch Case Action SubsystemSubsystem whose execution is triggered by Switch Case block
Switch CaseImplement C-like switch control flow statement
Action PortImplement Action subsystems used in if and switch control flow statements
While Iterator SubsystemSubsystem that repeats execution during a simulation time step
While IteratorRepeat execution of a subsystem while a logical condition signal is true
For Iterator SubsystemSubsystem that repeats execution during a simulation time step
For IteratorRepeatedly execute contents of subsystem at current time step until iteration variable exceeds specified iteration limit
For Each SubsystemSubsystem that repeats execution on each element or subarray of input signal and concatenates results
For EachProcess elements or subarrays of a mask parameter or input signal independently

Topics

Use Control Flow Logic

How to use control flow blocks to model control logic.

Action Subsystem

Create a subsystem that executes with a conditional control signal.

Repeat an Algorithm Using a For Each Subsystem

Iterate an algorithm over groups of signals, subsystems, and parameters.

Log Signals in For Each Subsystems

Use signal logging in For Each subsystems.

Was this topic helpful?