SCPI Command Reference 17-51
Byte order
:BORDer <name>
:FORMat:BORDer <name> Specify binary byte order
Parameters <name> = NORMal Normal byte order for binary formats
SWAPped Reverse byte order for binary formats
Query :BORDer? Query byte order
Description This command is used to control the byte order for the IEEE-754 binary
formats. For normal byte order, the data format for each element is sent as
follows:
Byte 1 Byte 2 Byte 3 Byte 4 (Single precision)
For reverse byte order, the data format for each element is sent as follows:
Byte 4 Byte 3 Byte 2 Byte 1 (Single precision)
The “#0” Header is not affected by this command. The Header is always
sent at the beginning of the data string for each measurement conversion.
The ASCII data format can only be sent in the normal byte order. The
SWAPped selection is simply ignored when the ASCII format is selected.
NOTE The SWAPped byte order must be used when transmitting binary data to any IBM PC
compatible computer.
Status register format
:SREGister <name>
:FORMat:SREGister <name> Set data format for reading status registers
Parameters <name> = ASCii Decimal format
Hexadecimal Hexadecimal format
OCTal Octal format
BINary Binary format
Query :SREGister? Query format for reading status registers
Description Query commands are used to read the contents of the status event registers.
This command is used to set the response message format for those query
commands.
When a status register is queried, the response message is a value that indi-
cates which bits in the register are set. For example, if bits B5, B4, B2, B1,
and B0 of a register are set (110111), the following values will be returned
for the selected data format:
ASCii 55 (decimal value)
Hexadecimal #H37 (hexadecimal value)
OCTal #Q67 (octal value)
BINary #B110111 (binary value)
See Section 15 and STATus subsystem in this section for more information.