Subsystem whose execution is enabled by a Switch Case block
Simulink / Ports & Subsystems
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.
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.
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.
Open model
.
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
[a] Actual data type or capability support depends on block implementation. |