Documentation

Byte Unpacking

Deconstruct data frames

Library

Simulink® Real-Time™ Library for Utilities

Description

This block is the exact analog of the Pack block. It can receive a vector of one of the following types:

  • double

  • single

  • int8

  • uint8

  • int16

  • uint16

  • int32

  • uint32

  • boolean

It outputs various Simulink data types in different sizes.

Block Parameters

Output port (unpacked) data types (cell array)

The output ports (unpacked) can be of arbitrary data type. The number of elements in the cell array define the number of output ports shown by this block instance. The data types can be

  • double

  • single

  • int8

  • uint8

  • int16

  • uint16

  • int32

  • uint32

  • boolean

Output port (unpacked) dimensions (cell array)

Specify the dimensions of each output port (unpacked). Enter this as a cell array of vector sizes.

Byte Alignment

The byte alignment field specifies how the data types are aligned. The possible values are 1, 2, 4, and 8. Each element in the list of signals starts on a boundary specified by the alignment relative to the start of the vector.

Was this topic helpful?