Waveform Commands
DATA? Example for Digital Channels
WORD and BYTE
When downloading the waveform data in WORD format, the 16-bit signed
Data Formats
integer value for each data point is sent in two consecutive 8-bit bytes over
GPIB. Whether the least significant byte (LSB) or the most significant byte
(MSB) is sent first depends on the byte order determined by the BYTeorder
command.
Before downloading the waveform data in BYTE format, each 16-bit signed
integer is converted into an 8-bit signed integer. Because there are more
possible 16-bit integers than there are 8-bit integers, a range of 16-bit integers
is converted into single 8-bit numbers. For example, the following 16-bit
numbers are all converted into one 8-bit number.
This conversion is what makes the BYTE download format less accurate than
the WORD format.
30-40
➱
16-bit integers
26,200
26,188
26,160
26,100
8-bit integer
104