Byte Unpack
Vector transformation UInt8 the output signals.
blockType: ByteUnpack
Path in the library:
|
Description
Block Byte Unpack gets a vector UInt8 and converts it into output signals of various types of Engee data depending on the contents of the input vector. The block parameters allow you to set the dimension and data type of the output signals, as well as the alignment of the data in the individual vectors output by the block.
Ports
Input
#
IN_1
—
signal for conversion
vector
Details
Input vector UInt8.
| Data types |
|
| Complex numbers support |
I don’t |
Output
#
OUT_1
—
converted signal data
Float64 type signal (by default) | signal data array
Details
An array of converted input signals of one or more data types.
| Data types |
|
| Complex numbers support |
I don’t |
Parameters
Parameters
# Output port dimensions — dimensions of the block output signals
Details
Specify the dimensions of the output signals that the block outputs to the array of cells. Each element of the array defines the dimension returned by the Engee function size for the corresponding signal. Specify the dimensions corresponding to the data transformed by the corresponding block Byte Pack in the model.
For example, suppose that the corresponding block Byte Pack defines the following input port data types:
("UInt32","UInt32","UInt16","Float64","UInt8","Float64","Float32")
To set the scalar and matrix output, you can set the parameter Output port dimensions meaning:
[(), (), (2, 4), (4, 4), (2, 2), (), (3, 3)]
To apply the same dimension to all output signals, you can specify a single dimension value.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Output port data types — data types of the block output signals
Details
Specify the Engee data types for the individual input signals received by the corresponding block Byte Pack in the model, in an array of cells.
For example, if the corresponding block Byte Pack defines the following input port data types, specify the same array of cells for this parameter.
("UInt32","UInt32","UInt16","Float64","UInt8","Float64","Float32")
To apply the same data type to each output signal, you must specify the data type only once.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Byte alignment —
byte boundary for data type alignment
1 | 2 | 4 | 8
Details
Specify how to align the data types of the output data to form the input vector. UInt8 in bytes. Specify the alignment value corresponding to the value specified for the corresponding block. Byte Pack in the model.
For example, if the corresponding block Byte Pack sets the byte alignment value to 2, set this parameter to 2.
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
No |