Main Content

Byte ordering

Byte ordering on test hardware

Model Configuration Pane: Hardware Implementation


Specify the byte ordering for the hardware that you use to test code.

Selecting a device by using the Device vendor and Device type parameters sets a device-specific value for this parameter.


This parameter is enabled only if you can modify it for the selected hardware.


Little Endian (default) | Big Endian | Unspecified


Little Endian

The least significant byte comes first.

Big Endian

The most significant byte comes first.


Specifies that the code determines the endianness of the hardware. This choice is the least efficient.

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No impact when Test hardware is the same as production hardware is selected. If it is not selected, no recommendation.

Programmatic Use

Parameter: TargetEndianess
Type: string | character vector
Values: 'Unspecified' | 'LittleEndian' | 'BigEndian'
Default: 'LittleEndian'

Version History

Introduced in R2006b