
Model 2657A High Power System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2657A-901-01 Rev. B/December 2012
7-91
Details
This function may buffer data until a flush (
fileVar
:flush()
or
io.flush()
) or close (
fileVar
:close()
or
io.close()
) operation is performed.
Also see
(on page 7-88)
(on page 7-88)
(on page 7-104)
(on page 7-105)
format.asciiprecision
This attribute sets the precision (number of digits) for all numbers printed with the ASCII format.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
No
Instrument reset
Recall setup
Not saved
6
Usage
precision
= format.asciiprecision
format.asciiprecision =
precision
precision
A number representing the number of digits to be printed for numbers printed with
the
print()
,
printbuffer()
, and
printnumber()
functions; must be a
number between
1
and
16
Details
This attribute specifies the precision (number of digits) for numeric data printed with the
print()
,
printbuffer()
, and
printnumber()
functions. The
format.asciiprecision
attribute is only used with
the ASCII format. The precision value must be a number between 1 and 16.
Note that the precision is the number of significant digits printed. There is always one digit to the left of the
decimal point; be sure to include this digit when setting the precision.
Example
format.asciiprecision = 10
x = 2.54
printnumber(x)
format.asciiprecision = 3
printnumber(x)
Output:
2.54000
2.54e+00
Also see
(on page 7-93)
(on page 7-148)
Summary of Contents for 2657A
Page 3: ......