Mux
Combines the input signals of the same data type into a vector.
blockType: Mux
Path in the library:
|
Description
Block Mux combines real or complex input data with the same type into a vector. You can use multiple blocks Mux to create a vector signal step by step, but the result will be the same as if you used a single block.
Ports
Output
#
OUT_1
—
Output signal
vector
Details
Block output signal Mux composed of combined input signals.
The order of the elements of the output signal of the multiplexer is determined by the order of the ports of the input signals.
| Data types |
|
| Complex numbers support |
Yes |
Input
#
IN_1
—
input signal to be included in the output signal
scalar | vector
Details
The input signal to be included in the output signal is a scalar or vector.
Input signals for the block Mux They can be any combination of scalars and vectors, but they must have the same data type and be real or complex.
The number of input ports depends on the parameter value Number of inputs.
| Data types |
|
| Complex numbers support |
Yes |
#
IN_2
—
input signal to be included in the output signal
scalar | vector
Details
The input signal to be included in the output signal is a scalar or vector.
Input signals for the block Mux They can be any combination of scalars and vectors, but they must have the same data type and be real or complex.
The number of input ports depends on the parameter value Number of inputs.
| Data types |
|
| Complex numbers support |
Yes |
Parameters
Main
# Number of inputs — number of input signals
Details
The number and dimension of the input signals. An integer scalar or vector.
If the parameter is set as a scalar:
-
If a value greater than is specified
1, then the block will have an appropriate number of input ports. Each input port expects a signal of the same dimension (scalar or vector). -
If the specified value is equal to
1, then the block will have only one input port, and its output signal will always be scalar, directly transmitting the value from this single input.
If the parameter is set as a vector:
-
The number of input ports of the block is equal to the length of the specified vector.
-
The dimension of the signal at each input port is set by the corresponding element of this vector.:
-
A positive integer means that a vector of signals of the specified length is expected at this input.
-
−1— a signal of any dimension (scalar or vector of any length) is allowed at this input.
-
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |