Manual Variant Sink

Switch amongst multiple variant choices at output


Signal Routing


The Manual Variant Sink block is a toggle switch that activates one of its variant choices at the output to pass the input.

It can have two or more output ports and has one input port. Each output port is associated with a variant control.

To toggle between the variant choices at output, double-click the block. The block propagates the active variant choice at output and discards the blocks connected to inactive output ports during simulation.

Data Type Support

The Manual Variant Sink 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.

Dialog Box and Parameters

To open the block dialog box, right-click the block and select Mask > Mask Parameters.

By default, the number of output choice is 2. You can change the number of outputs by typing a value in the Number of choices box. The maximum number of output choices can be 25.


Double-clicking the Manual Variant Sink block does not open the block dialog box instead it toggles the output choice.

Command-Line Information

Parameter: NumChoices
Type: character vector
Value: 2–25
Default: 2


To view how to use the Manual Variant Sink block, click Manual Variant Source and Sink Blocks.


Data Types

Double | Single | Boolean | Base Integer | Fixed-Point | Enumerated | Bus

Sample Time

Inherited from driving block

Direct Feedthrough


Multidimensional Signals


Variable-Size Signals


Zero-Crossing Detection


Code Generation


Introduced in R2016b

Was this topic helpful?