
Section 9
:
Instrument Control Library (ICL)
Series 3700 System Switch/Multimeter Reference Manual
9-128
Document Number: 3700S-901-01 Rev. A / August 2007
format.asciiprecision
Example
Sets the ASCII precision to 7 digits and prints a number:
format.asciiprecision = 7
print(2.5)
Output: 2.00
format.byteorder
Attribute
The binary byte order for data printed using the printnumber and printbuffer functions.
Usage
To read byte order:
order = format.byteorder
To write byte order:
format.byteorder = order
Set order to one of the following values:
0
or
format.NORMAL
Most significant byte first.
0
or
format.BIGENDIAN
Most significant byte first.
0
or
format.NETWORK
Most significant byte first.
1
or
format.SWAPPED
Least significant byte first.
1
or
format.LITTLEENDIAN
Least significant byte first.
Remarks
This attribute selects the byte order that data is written when printing data values
with th e printnumber and the printbuffer function s. The byte order attribute is only
used with the SREAL, REAL, REAL32, and REAL64 data formats.
NORMAL, BIGENDIAN, and NETWORK select the same byte order. SWAPPED
and LITTLEENDIAN select the same byte order. They are alternative identifiers.
Selecting which to use is a matter of preference.
Select the SWAPPED or LITTLEENDIAN byte order when sending data to a PC-
compatible computer.
Also see
format.asciiprecision
(on page 9-127)
format.data
(on page 9-128)
printbuffer
(on page 9-155)
printnumber
Example
Selects the SWAPPED byte order:
format.byteorder = format.SWAPPED