Documentation

Ports and Subsystems

Blocks related to subsystems, such as Inport, Outport, Subsystem, and Model

Blocks

Inport Create input port for subsystem or external input
OutportCreate output port for subsystem or external output
SubsystemGroup blocks to create model hierarchy
Unit System ConfigurationConfigure units
ModelInclude multiple model implementations as block in another model
Model VariantsInclude multiple model implementations as block in another model
Variant SubsystemTemplate subsystem containing Subsystem blocks as variant choices
Configurable SubsystemRepresent any block selected from user-specified library of blocks
Atomic SubsystemGroup blocks to create model hierarchy
CodeReuse SubsystemGroup blocks to create model hierarchy
Enabled SubsystemSubsystem whose execution is enabled by external input
Triggered SubsystemSubsystem whose execution is triggered by external input
Enabled and Triggered SubsystemSubsystem whose execution is enabled and triggered by external input
Resettable Subsystem Subsystem whose block states reset with external trigger
If Action SubsystemSubsystem whose execution is triggered by If block
Switch Case Action SubsystemSubsystem whose execution is triggered by Switch Case block
For Iterator SubsystemSubsystem that repeats execution during a simulation time step
For Each SubsystemSubsystem that repeats execution on each element or subarray of input signal and concatenates results
While Iterator SubsystemSubsystem that repeats execution during a simulation time step
TriggerAdd trigger port to subsystem or model
Action PortImplement Action subsystems used in if and switch control flow statements
EnableAdd enable port to subsystem or model
ResetAdd reset port to subsystem
For EachProcess elements or subarrays of a mask parameter or input signal independently
For IteratorRepeatedly execute contents of subsystem at current time step until iteration variable exceeds specified iteration limit
IfModel if-else control flow
Switch CaseImplement C-like switch control flow statement
While IteratorRepeat execution of a subsystem while a logical condition signal is true
Function-Call SubsystemSubsystem whose execution is triggered by external function call input
Function-Call Feedback LatchBreak feedback loop involving data signals between function-call blocks
Function-Call GeneratorProvide function-call signal to control execution of a subsystem or model
Function-Call SplitProvide junction for splitting function-call signal

Topics

Use Control Flow Logic

How to use control flow blocks to model control logic.

Was this topic helpful?