Manual Variant Sink
Manual variant routing between multiple outputs.
Description
The Manual Variant Sink block is a toggle switch that activates one of the variants on the output to pass input data to it.
A Manual Variant Sink block has only one input port and one or more output ports. The alternatives are connected to the output port of the block so that at most one variant is active during the execution of the model.
To switch between output selections, double-click the block. The block displays the active option with a line connecting the input to the output. The block propagates the active option to the output and discards blocks connected to inactive output ports during the simulation.
Double-clicking the Manual Variant Sink block does not open the block’s dialogue box, but toggles the output selection.
To open the settings dialogue box, right-click on the block and select "Parameters". In the parameters you can set the number of variants and manually set the number of the active variant.
Ports
Input
Port_1 - input signal
scalar
| vector
| matrix
Input signal to be connected to the active output port.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, Int128
, UInt8
, UInt16
, UInt32
, UInt64
, UInt128
, Fixed-point
, Bool
.
Output
Port_1 - output signal for the first variant
scalar
| vector
| matrix
Output signal for the first variant.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, Int128
, UInt8
, UInt16
, UInt32
, UInt64
, UInt128
, Fixed-point
, Bool
.
Port_N - output signal for the n-th variant
scalar
| vector
Output signal for the nth variant.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, Int128
, UInt8
, UInt16
, UInt32
, UInt64
, UInt128
, Fixed-point
, Bool
.
Parameters
Main
Number of choices - number of output options
2 (by default)
| scalar
Specify the number of ports to output choices.
Block parameter |
|
Values |
integer |
By default |
|
Active choice - number of active output port
1 (by default)
Double-clicking a block increases this parameter by one. Valid values range from 1 up to and including the value of the Number of choices parameter.