Switch amongst multiple variant choices at input
A Manual Variant Source block can have two or more input ports and has one output port. Each input port is associated with a variant control.
To toggle between the variant choices at input, double-click the block. The block propagates the active variant choice at input directly to the output and discards the blocks connected to inactive input ports during simulation.
The Manual Variant Source block accepts real or complex signals of any data type that Simulink® supports, including fixed-point and enumerated data types. For more information, see Data Types Supported by Simulink in the Simulink documentation.
To open the block dialog box, right-click the block and select Mask > Mask Parameters.
By default, the number of input choices is
You can change the number of inputs by typing a value in the Number
of choices box. The maximum number of input choices can
Double-clicking the Manual Variant Source block does not open the block dialog box instead it toggles the input choice.
|Type: character vector|
To view how to use the Manual Variant Source block, click Manual Variant Source and Sink Blocks.
Double | Single | Boolean | Base Integer | Fixed-Point | Enumerated | Bus
Inherited from driving block