Technical data
Waveform Commands 32
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference 871
:WAVeform:BYTeorder
Command :WAVeform:BYTeorder {MSBFirst | LSBFirst}
The :WAVeform:BYTeorder command selects the order in which bytes are
transferred to and from the oscilloscope using WORD and LONG formats.
If MSBFirst is selected, the most significant byte is transferred first.
Otherwise, the least significant byte is transferred first. The default setting
is MSBFirst.
Example This example sets up the oscilloscope to send the most significant byte
first during data transmission.
myScope.WriteString ":WAVEFORM:BYTEORDER MSBFIRST"
Query :WAVeform:BYTeorder?
The :WAVeform:BYTeorder? query returns the current setting for the byte
order.
Returned Format
[:WAVeform:BYTeorder] {MSBFirst | LSBFirst}<NL>
Example This example places the current setting for the byte order in the string
variable, strSetting, then prints the contents of the variable to the
computer's screen.
Dim strSetting As String ' Dimension variable.
myScope.WriteString ":WAVEFORM:BYTEORDER?"
strSetting = myScope.ReadString
Debug.Print strSetting
NOTE
The data transfer rate is faster using the LSBFirst byte order.
MSBFirst is for microprocessors, where the most significant byte resides at the lower
address. LSBFirst is for microprocessors, where the least significant byte resides at the
lower address.