SCPI Command Reference
17-45
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 for-
mats. However, some speed is compromised to accommodate the conver-
sion. Figure 17-1 shows an example ASCII string that includes all the data
elements. See :ELEMents.
Figure 17-1 also shows the byte order of the data string. Data elements not
speci
fi
ed 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 format.
See :BORDer.
IEEE-754 single precision format
REAL,32, or SREal will select the binary IEEE-754 single precision data
format. Figure 17-2 shows the normal byte order format for each data ele-
ment. For example, if three valid elements are speci
fi
ed, the data string for
each reading conversion is made up of three 4-byte data blocks. Note that
the data string for each reading conversion is preceded by a 2-byte header
that is the binary equivalent of an ASCII # sign and 0. Figure 17-2 does not
show the byte for the terminator that is attached to the end of each data
string.
+1.00, +1.000000E-04, +1.04, +7.01, +4.04
Voltage
Reading
Current
Reading
Resistance
Reading
Time
Status
Figure 17-1
ASCII data format
s
# 0
7
0 7
0 7
0 7
0
e
f
Header
Byte 1
Byte 2
Byte 3
Byte 4
s = sign bit (0 = positive, 1 = negative)
e = exponent bits (8)
f = fraction bits (23)
Normal byte order shown. For swapped byte order, bytes sent
in reverse order: Header, Byte 4, Byte 3, Byte 2, Byte 1.
The header and terminator are sent only once for each READ?
Figure 17-2
IEEE-754 single
precision data
format (32 data
bits)
Содержание 6430
Страница 26: ......
Страница 32: ......
Страница 78: ...2 14 Connections ...
Страница 98: ...3 20 Basic Source Measure Operation ...
Страница 138: ...5 30 Source Measure Concepts ...
Страница 156: ...6 18 Range Digits Speed and Filters ...
Страница 168: ...7 12 Relative and Math ...
Страница 176: ...8 8 Data Store ...
Страница 202: ...9 26 Sweep Operation ...
Страница 248: ...11 22 Limit Testing ...
Страница 310: ...16 6 SCPI Signal Oriented Measurement Commands ...
Страница 418: ...17 108 SCPI Command Reference ...
Страница 450: ...18 32 Performance Verification ...
Страница 477: ...A Specifications ...
Страница 489: ...B StatusandErrorMessages ...
Страница 498: ...B 10 Status and Error Messages ...
Страница 499: ...C DataFlow ...
Страница 503: ...D IEEE 488BusOverview ...
Страница 518: ...D 16 IEEE 488 Bus Overview ...
Страница 519: ...E IEEE 488andSCPI ConformanceInformation ...
Страница 523: ...F MeasurementConsiderations ...
Страница 539: ...G GPIB488 1Protocol ...
Страница 557: ......