Keithley SourceMeter 2600 Series Reference Manual page 319

Table of Contents

Advertisement

Series 2600 System SourceMeters Reference Manual
format.data
Attribute
The data format for data printed using the
Usage
fmt = format.data
format.data = fmt
Set
fmt
or
1
or
2
or
2
or
3
or
3
• This attribute selects the data format used to print data values with the
Remarks
printnumber
• 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
• 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.
Also see
format.asciiprecision, format.byteorder, printbuffer,
Example
Selects the ASCII data format:
format.data = format.ASCII
to one of the following values:
format.ASCII
format.SREAL
format.REAL32
format.REAL
format.REAL64
and
printbuffer
format.byteorder
attribute.
Return to
Instrument Control Library 12-45
printnumber
-- 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.
functions.
printnumber
Section 12 topics
and
functions.
printbuffer
format.asciiprecision
2600S-901-01 Rev. A / May 2006

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents