Pack Data

Pack integer array into array of bytes using a Simulink block

Library

Pack and Unpack Data

Description

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

Size

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

Dialog Box

DataType

Specify the data type of the input

DataSize

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