Keithley 3700 series Reference Manual page 272

System switch/multimeter
Hide thumbs Also See for 3700 series:
Table of Contents

Advertisement

Section 9: Instrument Control Library (ICL)
format.asciiprecision
Example
format.byteorder
Attribute
Usage
Remarks
Also see
Example
9-128
Sets the ASCII precision to 7 digits and prints a number:
format.asciiprecision = 7
print(2.5)
Output: 2.500000E+00
The binary byte order for data printed using the printnumber and printbuffer functions.
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.
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.
format.asciiprecision
(on page 9-127)
format.data
(on page 9-128)
printbuffer
(on page 9-155)
printnumber
Selects the SWAPPED byte order:
format.byteorder = format.SWAPPED
Series 3700 System Switch/Multimeter Reference Manual
Document Number: 3700S-901-01 Rev. A / August 2007

Advertisement

Table of Contents
loading

Table of Contents