Download KEI 2010 User

Transcript
5-28
SCPI Command Reference
:FORMat subsystem
The commands in this subsystem are used to select the data format for
transferring instrument readings over the bus. The BORDer command and
DATA command only affect readings transferred from the buffer (i.e.,
SENSE:DATA? or CALC:DATA? are always sent in ASCII). These
commands are summarized in Table 5-4.
:DATA command
[:DATA] <type>
:FORMat[:DATA] <type>
Specify data format
Parameters
<type> =
Query
[DATA]?
Description
This command is used to select the data format for transferring readings over
the bus. For every reading conversion, the data string sent over the bus
contains the elements specified by the :ELEMents command. The specified
elements are sent in a particular order.
ASCii
SREal
DREal
ASCII format
IEEE754 single precision format
IEEE754 double precision format
Query data 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 5-1 shows the ASCII format that includes all the data
elements.
Figure 5-1
ASCII data format
Reading*
Channel
Number
±1.23456789E±00VDC, 0INTCHAN
Mantissa
Exponent
Units:
VDC = DC Volts
VAC = AC Volts
ADC = DC Current
AAC = AC Current
OHM = 2-wire Resistance
OHM4W = 4-wire Resistance
HZ = Frequency
C = Temperature in °C
F = Temperature in °F
K = Temperature in K
Units:
INTCHAN = Internal Channel
EXTCHAN = External Channel
0 = No channel
1 to 80 = Channel Number
* An overflow reading is displayed as +9.9E37 with no units