Documentation

Control Flow Logic

Model control flow logic such as for, if-else, switch, and while statements

Blocks

If Action Subsystem Represent subsystem whose execution is triggered by If block
If Model if-else control flow
Switch Case Action Subsystem Represent subsystem whose execution is triggered by Switch Case block
Switch Case Implement C-like switch control flow statement
Action Port Implement Action subsystems used in if and switch control flow statements
While Iterator Subsystem Represent subsystem that executes repeatedly while condition is satisfied during simulation time step
While Iterator Repeatedly execute contents of subsystem at current time step while condition is satisfied
For Iterator Subsystem Represent subsystem that executes repeatedly during simulation time step
For Iterator Repeatedly execute contents of subsystem at current time step until iteration variable exceeds specified iteration limit

Examples and How To

Use Control Flow Logic

How to use control flow blocks to model control logic.

Concepts

Create an Action Subsystem

Create a subsystem that executes with a conditional control signal.

Was this topic helpful?