Manual

P
ART
T
WO
:
COMMANDS
112
ISSUED: February 2005
WM-RCM-E Rev D
COMMUNICATION
COMM_ORDER, CORD
Command/Query
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, i.e. 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 The order of transmission of waveform data depends on the data
type. The following table illustrates the different possibilities:
T
YPE
CORD
HI CORD
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