2400 Series SourceMeter
®
User’s Manual SCPI Command Reference 18-49
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 18-3.
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?,
MEASure?, TRACe:DATA?, CALC1:DATA? and CALC2:DATA? over
the GPIB. All other queries are returned in the ASCII format.
NOTE Regardless of which data format for output strings is selected, the SourceMeter
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 BASIC languages easily convert ASCII mantissa and exponent to
other formats. However, some speed is compromised to accommodate
the conversion. Figure 18-1 shows an example ASCII string that
includes all the data elements. (See “ELEMents <item list>,”
page 18-51.)
Figure 18-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 18-56, command.)
Figure 18-1
ASCII data format
+1.000206E+00, +1.000000E-04, +1.000236E+04, +7.282600E+01, +4.813200E+04
Voltage
Reading
Current
Reading
Resistance
Reading
Time
Status
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com