
1- 12 Agilent B2900 SCPI Command Reference, Edition 2
Programming Basics
Data Output Format
Data Output Format
B2900 supports the following data output formats for sending the result data. The
data contains all of the elements specified by the
:FORMat:ELEMents:SENSe or
:FORMat:ELEMents:CALCulate command. Available elements are voltage
measurement data, current measurement data, resistance measurement data,
calculation result data, time data, status data, and source output setting data. A
terminator <newline> (0x0a, 1 byte) is attached to the end of each data.
• ASCII data format, set by :FORMat[:DATA] ASCii
Returns the result data in the comma-separated format. If the data contains three
elements, B2900 sends the data as shown in the following example.
Example: +1.000001E-06,+1.000002E-06,+9.999999E-07<newline>
+9.910000E+37 indicates “not a number”.
+9.900000E+37 indicates positive infinity.
-9.900000E+37 indicates negative infinity.
• IEEE-754 single precision format, set by :FORMat[:DATA] REAL,32
4-byte definite length block data, #<number of digits for byte length><byte
length><byte>...<byte><terminator>. For example, two data elements are sent
by a data block which consists of a header (3
bytes, #18), two 4-byte data, and a
terminator (1 byte). A 4-byte data 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).
Order of bytes set by :FORMat:BORDer NORMal (default): byte 1 to 4
Order of bytes set by :FORMat:BORDer SWAPped: byte 4 to 1
NaN indicates “not a number”.
+infinity indicates positive infinity.
-infinity indicates negative infinity.
• IEEE-754 double precision format, set by :FORMat[:DATA] REAL,64
8-byte definite length block data, #<number of digits for byte length><byte
length><byte>...<byte><terminator>. For example, one data element is sent by a
data block which consists of a header (3
bytes, #18), one 8-byte data, and a
Commentaires sur ces manuels