Pack Data

Pack integer array into array of bytes using a Simulink block


Pack and Unpack Data


Package an integer of the type and size specified into an array of bytes.

Data Type

Input can be any of the following supported int data types:

*when uint8 is specified, the input is passed through


Input data must be a 1-dimensional array. There is no limit to the length of the array

Dialog Box


Specify the data type of the input


Specify the data size of the input

Code Generation

This block is supported for code generation. It can be be used in a Simulink model, deployed to a target, or converted into a standalone executable or mex file.

See Also

Unpack Data