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
.
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.
shows an example ASCII
string that includes all the data elements. See
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
Figure 10-1
ASCII data format
+1.01, +1.00, +1.00, +1.00, +1.03, +1.01, +7.01, +4.04
Voltage
Reading
Current
Reading
Power
Reading
Time
Status
Temperature
Reading
Resistance
Reading
Reading
Sensor
Summary of Contents for TEC SourceMeter 2510
Page 194: ...A Specifications...
Page 197: ...B StatusandErrorMessages...
Page 206: ...C IEEE 488BusOverview...
Page 221: ...D IEEE 488andSCPI ConformanceInformation...
Page 225: ...E ExamplePrograms...
Page 233: ...F GPIB488 1Protocol...