:SYSTem:BORDer

Flex Apps:
FlexDCA
FlexRT
FlexPLL
FlexOTO
FlexOTO Instance:
Hardware Diagram
Stations

Command Syntax

:SYSTem:BORDer {BENDian | LENDian}

Query Syntax

:SYSTem:BORDer?

Description

Specifies the byte order (endiannes) of binary data that is returned to a controller due to a SCPI query. A default setup (:SYSTem:DEFault command) does not reset the endiannes setting. A factory preset (:SYSTem:FACTory command) does reset the endiannes setting.

BENDian
Bytes are sent in big-endian order with the most significant byte sent first and the least significant byte sent last.
LENDian
Bytes are sent in little-endian order with the least significant byte sent first and the most significant byte sent last. This is the factory preset setting.

Because an incorrect endianess setting can be frustrating to troubleshoot, it is a good idea to explicitly set the endianess before transferring binary data and to restore the endianess setting upon completion of your program. Use the following sequence of commands:

endian_setting = :SYSTem:BORDer?
:SYSTem:BORDer BENDian
…
:JOBS:RESults:SIMage?
…
:SYSTem:BORDer endian_setting

Be aware that VXI plug-and-play drivers can change the endianess setting. As a result always explicitly set the endianess in your program before transferring any binary data.

This setting applies to the subsystem queries listed below but does not affect data returned by the :DISK:FILE:READ? command.

:JOBS Subsystem Queries That Return Block Data