Route amongst multiple outputs using Variants
Simulink / Signal Routing
The Variant Sink block has one input port and one or more output ports. You can define Variant choices as blocks that are connected to the output port so that, at most, one choice is active.
Each output port is associated with a Variant control. The Variant control that
evaluates to true
, determines which output port is active.
During simulation, Simulink® connects the active choice directly to the input port of the Variant Sink block and ignores the inactive choices.
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Manual Variant Sink | Manual Variant Source | Model | Simulink.Variant
| Variant Source | Variant Subsystem