![background image](http://html1.mh-extra.com/html/keithley/sourcemeter-2600-series/sourcemeter-2600-series_reference-manual_4098633319.webp)
Series 2600 System SourceMeters Reference Manual
Instrument Control Library 12-45
Return to
2600S-901-01 Rev. A / May 2006
format.data
Attribute
The data format for data printed using the
printnumber
and
printbuffer
functions.
Usage
fmt = format.data
-- Reads data format.
format.data = fmt
-- Writes data format.
Set
fmt
to one of the following values:
1
or
format.ASCII
ASCII format.
2
or
format.SREAL
Single precision IEEE-754 binary format.
2
or
format.REAL32
Single precision IEEE-754 binary format.
3
or
format.REAL
Double precision IEEE-754 binary format.
3
or
format.REAL64
Double precision IEEE-754 binary format.
Remarks
• This attribute selects the data format used to print data values with the
printnumber
and
printbuffer
functions.
• 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
attribute.
• 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
Example
Selects the ASCII data format:
format.data = format.ASCII
Содержание SourceMeter 2600 Series
Страница 507: ...AppendixA Specifications Appendix A topics Model 2600S Specifications page A 2 2600S 901 01 Rev A May 2006...
Страница 575: ...AppendixF DisplayCharacterCodes Appendix F topics Introduction page F 2...
Страница 592: ......
Страница 593: ......