
Agilent B2900 SCPI Command Reference, Edition 2 1- 13
Programming Basics
Data Output Format
terminator (1 byte). An 8-byte data is used for each data element. Each element
consists of a fraction (bits 0 (LSB) to 51), exponent (bits 52 to 62), and sign (bit
63).
Order of bytes set by :FORMat:BORDer NORMal (default): byte 1 to 8
Order of bytes set by :FORMat:BORDer SWAPped: byte 8 to 1
NaN indicates “not a number”.
+infinity indicates positive infinity.
-infinity indicates negative infinity.
NOTE
If the conventional command set is used
If the IEEE-754 single precision data output format is used with the conventional
command set, the output data will be an indefinite length block data, #0<byte
length><byte>...<byte><terminator>. For example, two data elements are sent by a
data block which consists of a header (2
bytes, #0), two 4-byte data, and a
terminator (1 byte). A block is used for each data element. Each element consists of
a fraction (bits 0 (LSB) to 22), exponent (bits 23 to 30), and sign (bit 31).
For the conventional command set, see Chapter 6, “Using Your Existing Programs.”
Status Data
B2900 sends the status data with the result data if it is specified by the
:FORMat:ELEMents:SENSe or :FORMat:ELEMents:CALCulate command.
The status data is given by a binary-weighted sum of all bits set in the binary data.
For example, if bit 3 (decimal value = 8) and bit 5 (decimal value = 32) are set to 1,
the status data returns 40.
Bit definitions of the status data are shown in Table 1-2.
Comments to this Manuals