User manual

Section 13: Instrument Control Library (ICL) Series 3700 System Switch/Multimeter Reference Manual
13-184 3700S-901-01 Rev. C / July 2008
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 the printnumber() (on page 13-222) and printbuffer() (on page 13-221)
functions. 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 13-183)
format.data (on page 13-184)
printbuffer() (on page 13-221)
printnumber() (on page 13-222)
Example
Selects the SWAPPED byte order:
format.byteorder = format.SWAPPED
format.data
Attribute
The data format for data printed using the printnumber and printbuffer functions.