This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Ports and Subsystems

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

Blocks

InportCreate input port for subsystem or external input
OutportCreate output port for subsystem or external output
In Bus Element Select signal that connects to input port
Out Bus ElementSpecify signal that connects to output port
SubsystemGroup blocks to create model hierarchy
Unit System ConfigurationConfigure units
ModelReference another model to create model hierarchy
Variant SubsystemTemplate subsystem containing Subsystem blocks or Model 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 inputs
Resettable Subsystem Subsystem whose block states reset with external trigger
If Action SubsystemSubsystem whose execution is enabled by an If block
Switch Case Action SubsystemSubsystem whose execution is enabled by a 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 or function port to subsystem or model
Action PortAdd control port for action signal to subsystem
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 IteratorRepeat execution of a subsystem during a time step for a specified number of iterations
IfSelect subsystem execution using logic similar to if-else statement
Switch CaseSelect subsystem execution using logic similar to a switch statement
While IteratorRepeat execution of a subsystem while a logical expression is true
Function-Call SubsystemSubsystem whose execution is controlled by an external function-call input
Function-Call Feedback LatchBreak feedback loop involving data signals between function-call blocks
Function-Call GeneratorProvide function-call events to control execution of a subsystem or model
Function-Call SplitProvide junction for splitting function-call line

Topics

Use Control Flow Logic

How to use control flow blocks to model control logic.