Manual Variant Source
Manual variable routing between multiple inputs.
blockType: ManualVariantSource
Path in the library:
|
Description
Block Manual Variant Source It is a toggle switch that activates one of the input options for transmitting data to the output.
Block Manual Variant Source It can have two or more input ports and only one output port. Each input port is associated with a variant control. The number of input ports is set by the parameter Number of choices.
To switch between the output options, double-click the block. The block displays the active option as a line connecting the input to the output. The block distributes the active input option directly to the output and during the simulation does not take into account the blocks connected to inactive input ports.
Ports
Output
#
OUT_1
—
Output signal
scalar | vector | the matrix
Details
The output signal that needs to be connected to the active input port.
| Data types |
|
| Complex numbers support |
Yes |
Input
#
IN_1
—
the input signal for the first option
scalar | vector | the matrix
Details
The input signal for the first option. The unit transmits the input signal to the output port when a toggle switch is connected to this port.
The number of input ports depends on the parameter value Number of choices.
| Data types |
|
| Complex numbers support |
Yes |
#
IN_2
—
input signal for the 2nd option
scalar | vector | the matrix
Details
The input signal for the 2nd option. The unit transmits the input signal to the output port when a toggle switch is connected to this port.
The number of input ports depends on the parameter value Number of choices.
| Data types |
|
| Complex numbers support |
Yes |
Parameters
Main
#
Number of choices —
number of input options
Integer
Details
Specify the number of ports for input options.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Active choice —
the number of the active input port
Integer
Details
The number of the active input port. Acceptable values range from 1 before the parameter value Number of choices inclusive.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |