User manual

Table Of Contents
Part 6: IEEE 488.2 Command Reference
COMM_ORDER, CORD
Description
The COMM_ORDER command controls the byte order of waveform data transfers. Waveform data can be
sent with the most significant byte (MSB) or the least significant byte (LSB) in the first position. The
default mode is to send the MSB first. COMM_ORDER applies equally to the waveform's descriptor and
time blocks. In the descriptor some values are 16 bits long (word), 32 bits long (long or float), or 64 bits long
(double). In the time block all values are floating values, meaning, 32 bits long. When COMM_ORDER HI is
specified, the MSB is sent first; when COMM_ORDER LO is specified, the LSB is sent first.
The COMM_ORDER ? query returns the byte transmission order in current use.
Command Syntax
COMM_ORDER <mode>
<mode>:= {HI, LO}
Query Syntax
COMM_ORDER?
Response Format
COMM_ORDER <mode>
Example (GPIB)
The order of transmission of waveform data depends on the data type. The following table illustrates the
different possibilities:
Data Type COMMORDER HI COMMORDERLO
Word <MSB><LSB> <LSB><MSB>
Long or Float <MSB><byte2><byte3><LSB> <LSB><byte3><byte2><MSB>
Double <MSB><byte2>...<byte7><LSB> <LSB><byte7>...<byte2><MSB>
Related Commands
WAVEFORM
6-49