Models 707B and 708B Switching Matrix Reference Manual
Usage
format = format.data
format.data = format
value
Details
The precision of numeric values can be controlled with the format.asciiprecision attribute. The byte order
of format.SREAL, format.REAL, format.REAL32, and format.REAL64 can be selected with the
format.byteorder attribute.
The IEEE Std 754 binary formats use four bytes each for single-precision values and eight bytes each for
double-precision values.
When data is written with any of the binary formats, the response message starts with "#0" and ends with a new
line. When data is written with the ASCII format, elements are separated with a comma and space.
Binary formats are not intended to be human readable.
Example
format.asciiprecision = 10
x = 3.14159265
format.data = format.ASCII
printnumber(x)
format.data = format.REAL64
printnumber(x)
Also see
format.asciiprecision
format.byteorder
printbuffer()
(on page 7-138)
printnumber()
707B-901-01 Rev. A / August 2010
The format to use for data, set to one of the following values:
•
ASCII format: 1 or format.ASCII
•
Single-precision IEEE Std 754 binary format: 2, format.SREAL, or
format.REAL32
•
Double-precision IEEE-754 binary format: 3, format.REAL,
format.REAL64, or format.DREAL
(on page 7-93)
(on page 7-93)
(on page 7-140)
NOTE
3.141592650e+00
#0ñÔÈSû!
Section 7: Command reference
@
7-95