User`s guide
3 Network Communication
3-22
Note Individual elements of vector/matrix signals are not byte aligned: only
the entire vector/matrix is byte aligned. The individual elements are tightly
packed with respect to the first element.
UDP Unpack Block
This block is the exact analog of the Pack block. It receives a vector of uint8
and outputs various Simulink data types in different sizes.
As shown in the figure above, the
Output port datatypes field is the same as
in the
Input port data types field of the matching Pack block. The Pack block
is on the sending side and the Unpack block is on the receiving side in different
models. The
Output port dimensions field contains a cell array, with each
element the dimension as returned by the size function in MATLAB of the
corresponding signal. This should normally be the same as the dimensions of
the signals feeding into the corresponding Pack block.
Note on Byte Alignment
The byte alignment feature provided in the Pack and Unpack blocks is
primarily intended for interfacing a system running xPC Target to another
system that is running neither Simulink nor xPC Target. For example, the