Models 2510 and 2510-AT User’s Manual SCPI Command Reference 10-19
FORMat subsystem
The commands for this subsystem are used to select the data format for transferring instru-
ment readings over the bus. These commands are summarized in Table 10-2.
Data format
[:DATA] <type>[,length]
:FORMat[:DATA] <type>[,<length>] Select data format
Parameters <type>[,<length>] = ASCii ASCII format
REAL,32 IEEE754 single precision format
SREal IEEE754 single precision format
NOTE <length> is not used for the ASCii or SREal parameters. It is optional for the
REAL parameter. If you do not use <length> with the REAL parameter, the
<length> defaults to 32 (single precision format).
Query [:DATA]? Query data format
Description This command is used to select the data format for transferring readings
over the bus. Only the ASCII format is allowed over the RS-232 inter-
face. This command only affects the output of READ?, FETCh?, and
MEASure[:<function>]?, over the GPIB. All other queries are returned
in the ASCII format.
NOTE Regardless of which data format for output strings is selected, the Model 2510
will only respond to input commands using the ASCII format.
ASCII format
The ASCII data format is in a direct readable form for the operator.
Most high-level computer languages easily convert ASCII mantissa and
exponent to other formats. However, some speed is compromised to
accommodate the conversion. Figure 10-1 shows an example ASCII
string that includes all the data elements. See “:ELEMents <item list>,”
page 10-21.
Figure 10-1 also shows the byte order of the data string. Data elements
not specified by the :ELEMents command are simply not included in the
string.
Keep in mind that the byte order can only be reversed for the binary for-
mat. See “:BORDer <name>,” page 10-23.
Figure 10-1
ASCII data format
+1.100000E+01, +1.000206E+00, +1.000000E+00, +1.000000+00, +1.000000E+03, +1.000000E+01, +7.282600E+01, +4.813200E+04
Voltage
Reading
Current
Reading
Power
Reading
Time
Status
Temperature
Reading
Resistance
Reading
Reading
Sensor