Keithley 2601 Reference Manual page 298

System sourcemeter 2600 series (smu)
Hide thumbs Also See for 2601:
Table of Contents

Advertisement

Section 12: Instrument Control Library
format.byteorder
Attribute
The binary byte order for data printed using the printnumber and printbuffer
functions.
Usage
order = format.byteorder
format.byteorder = order
Set
order
or
format.NORMAL
0
or
format.BIGENDIAN
0
or
format.NETWORK
0
or
format.SWAPPED
1
or
format.LITTLEENDIAN
1
Remarks
• This attribute selects the byte order that data is written when printing data values with th
printnumber
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 an IBM PC
compatible computer.
Also see
format.asciiprecision, format.data, printbuffer,
Example
Selects the SWAPPED byte order:
format.byteorder = format.SWAPPED
format.data
Attribute
The data format for data printed using the printnumber
Usage
fmt = format.data
format.data = fmt
Set
fmt
or
format.ASCII
1
or
format.SREAL
2
or
format.REAL32
2
or
format.REAL
3
or
format.REAL64
3
Remarks
• This attribute selects the data format used to print data values with the printnumber
and printbuffer
• The precision of the ASCII format can be controlled with the
attribute. The byte order of SREAL, REAL, REAL32, and REAL64 can be selected with
the
format.byteorder
• REAL32 and SREAL select the same single precision format. REAL and REAL64 select
the same double precision format. They are alternative identifiers. Selecting which to use
is a matter of preference.
• The IEEE-754 binary formats use 4 bytes each for single precision values and 8 bytes
each for double precision values.
• When data is written with any of the binary formats, the response message will start with
"#0" and end with a new line. When data is written with the ASCII format, elements will be
separated with a comma and space.
format.asciiprecision, format.byteorder, printbuffer,
Also see
Example
Selects the ASCII data format:
format.data = format.ASCII
12-38
to one of the following values:
and the
printbuffer
to one of the following values:
functions.
attribute.
Return to
Series 2600 System SourceMeter® Instruments Reference Manual
-- Reads byte order.
-- Writes byte order.
Most significant byte first.
Most significant byte first.
Most significant byte first.
Least significant byte first.
Least significant byte first.
function
s. The byte order attribute is only used
printnumber
and
printbuffer
-- Reads data format.
-- Writes data format.
ASCII format.
Single precision IEEE-754 binary format.
Single precision IEEE-754 binary format.
Double precision IEEE-754 binary format.
Double precision IEEE-754 binary format.
format.asciiprecision
printnumber
Section Topics
e
function
s.
2600S-901-01 Rev. C / January 2008

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

26362602261126122635

Table of Contents