Chapter
4
Native Device Message Details
4-98
FORM:BORD/FORM:BORD?
Binary Data Byte Order
Function
This command sets the byte order of the data that is read out, when
REAL,32 or INTeger,32 has been set for FORM.
Command
FORM:BORD border
Query
FORM:BORD?
Parameter
border
Byte order
NORM
Sets the byte order to big endian (Default).
SWAP
Sets the byte order to little endian.
Details
This function sets the data arrangement format when data is output in
the binary format. In the case of big endian, the data is arranged from
the highest byte, and in the case of little endian, from the lowest byte.
For example, in the case of the 4-byte data of 0x01234567, the data is
arranged as 01 23 45 67 in the case of big endian, and as 67 45 23 01 in
the case of little endian.
Example of Use
To set the byte order to little endian.
FORM:BORD SWAP
FORM:BORD?
> SWAP