![background image](http://html2.mh-extra.com/html/keithley/2308/2308_user-manual_3948247158.webp)
10-6
Return to
Section Topics
2308-900-01 Rev. A / July 2008
Section 10: DISPlay and FORMat
Model 2308 Portable Device Battery/Charger Simulator User’s Manual
Figure 10-2
IEEE-754 double precision data format
During binary transfers, never un-talk the power supply until after the data is read (input) to the
computer. Also, to avoid erratic operation, the readings of the data string (and terminator) should
be acquired in one piece. The header (#0) can be read separately before the rest of the string.
The number of bytes to be transferred can be calculated as follows:
Bytes = 2 + (Rdgs
×
4) + 1 for SREAL
Bytes = 2 + (Rdgs
×
8) + 1 for DREAL
where: 2 is the number of bytes for the header (#0).
Rdgs is the number of readings to be transferred.
4 or 8 is the number of bytes for each reading.
1 is the byte for the terminator.
For example, assume that the power supply is configured to trigger 10 voltage readings and send
the 10 voltage measurements to the computer using the binary format.
Bytes = 2 + (10
×
4) + 1 = 43 for SREAL
Bytes = 2 + (10
×
8) + 1 = 83 for DREAL
FORMat:BORDer <name>
Specify binary byte order
Parameters
<name> = NORMal
Normal byte order for binary formats
SWAPped
Reverse byte order for binary formats
This command is used to control the byte order for the IEEE-754 binary formats. For normal byte
order, the data format for each element is sent as follows:
For reverse byte order, the data format for each element is sent as follows:
The #,0 header is not affected by this command. The header is always sent at the beginning of the
data string for each measurement conversion.
Byte 1
Byte 2
Byte 3
Byte 4
(Single precision)
Byte 1
Byte 2
• • •
Byte 8
(Double precision)
Byte 4
Byte 3
Byte 2
Byte 1
(Single precision)
Byte 8
Byte 7
• • •
Byte 1
(Double precision)
Byte 1
7
0
Header
Byte 2
7
0
Byte 7
7
0
Byte 8
7
0
s
e
f
s = sign bit (0 = positive, 1 = negative)
e = exponent bits (11)
f = fraction bits (52)
Normal byte order shown. For swapped byte order,
bytes sent in reverse order: Header, Byte 8,
Byte 7 .... Byte 1.
The Header is only sent once for each measurement conversion.
Bytes 3, 4, 5, and 6 not shown.
# 0
Summary of Contents for 2308
Page 2: ......
Page 12: ...This page left blank intentionally...
Page 32: ...This page left blank intentionally...
Page 106: ...This page left blank intentionally...
Page 140: ...This page left blank intentionally...
Page 208: ...This page left blank intentionally...
Page 220: ...This page left blank intentionally...