A conditionally executed subsystem or conditionally executed referenced model runs:
Once at the current time step when enabled or triggered by an external signal
One or more times during a time step when receiving a function-call event.
The external signal, called the control signal, is attached to the control input port.
For subsystems that run after evaluating a condition, see Logical Conditionally Executed Subsystems.
Conditionally Executed Subsystems Overview
Overview of conditionally executed subsystems.
Modify Referenced Models for Conditional Execution
Execute referenced models conditionally, similar to conditionally executed subsystems.
Option on a conditional subsystem or root-level Outport block.
Create a subsystem that executes when a control signal has a positive value.
Create a subsystem that executes with a trigger signal.
Using Enabled and Triggered Subsystems
Create a subsystem that executes with a trigger signal or control signal with a positive value.
Using Function-Call Subsystems
Create a subsystem that executes with a function call.
Conditional Subsystem Initial Output Values
Specify initial output values for a conditional subsystem.
Conditional Subsystem Output Values When Disabled
Specify output behavior when conditional subsystem is disabled.
Simplified Initialization Mode
Control initial values for conditional subsystems.