Demux
Unpacking and outputting vector signal elements.
Description
The Demux block decompresses the components of the input vector signal and outputs the individual signals. The output signal ports are ordered from top to bottom.
The block distributes the signals evenly, but if the number of elements in the input is not divisible by the number of outputs, the dimensionality is alternately increased on the outputs from top to bottom.
Ports
Input
Port_1 - input vector signal
real or complex numbers of any supported data type
Vector input signal from which the Demux block selects scalar signals or smaller vectors.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, Int128
, UInt8
, UInt16
, UInt32
, UInt64
, UInt128
, Bool
, Fixed-point
.
Support for complex numbers: yes
Output
Port_1 - output signals extracted from the input vector signal
real or complex numbers of any supported data type
Output signals extracted from the input vector signal. The output signal ports are ordered from top to bottom.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, Int128
, UInt8
, UInt16
, UInt32
, UInt64
, UInt128
, Bool
, Fixed-point
.
Support for complex numbers: yes
Port_n - output signals extracted from the input vector signal
`real or complex numbers of any supported non-busy data type'.
Output signals extracted from the input vector signal. The output signal ports are ordered from top to bottom.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, Int128
, UInt8
, UInt16
, UInt32
, UInt64
, UInt128
, Bool
, Fixed-point
.
Support for complex numbers: yes
Parameters
Number of outputs - number of outputs
2 (by default)
| scalar
| vector
Set the number of outputs.
If you specify a number of outputs that is less than the number of input elements, the block distributes the elements to the outputs as evenly as possible.
If the parameters is specified by a scalar, it specifies the number of output ports. If the parameters is given by a vector, it specifies the number of outputs equal to the length of the vector, with a vector of length Outputs[i] on the i-th output port. If the input signal length does not match the sum of the specified output signal lengths, the block will generate an error. The elements of the vector must be positive integers or -1 (a vector of any length or a scalar is allowed at this input).
Block parameters |
|
Values |
|
By default |
|