Switch Case Action Subsystem
Subsystem whose execution is enabled by Switch Case block
- Library:
Simulink / Ports & Subsystems
Description
The Switch Case Action Subsystem block is a Subsystem block preconfigured as a starting point for creating a subsystem whose execution is controlled by a Switch Case block. The input port to a Switch Case block selects a case defined using the Case conditions parameter. Depending on input value and case selected, an action signal is sent to execute a Switch Case Action Subsystem block. Execution of the subsystem is controlled by an Action Port block placed inside the subsystem.
Simulink® ignores a priority set on an Switch Case Action Subsystem block. Instead, set the priority on the Switch Case block that initiates execution of the subsystem.
All blocks in a Switch Case Action Subsystem block must run at the same
rate as the driving Switch Case block. You can achieve this requirement
by setting each block sample time parameter to be either inherited
(-1
) or the same value as the Switch Case block
sample time.
Merge signals from Switch Case Subsystem blocks
This example shows how to create a one signal from multiple
subsystem output signals. The Switch Case block selects the execution
of one If Action Subsystem block from a set of subsystems. Regardless
of which subsystem the Switch Case block selects, you can create a
one resulting signal with a Merge block. To open the model, see
ex_switch_case_block
.
Ports
Input
Output
Model Examples
Block Characteristics
Extended Capabilities
Version History
Introduced before R2006a