Format.asciiprecision - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Section 7: TSP command reference
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
fileVar:close()
fileVar:flush()
io.close()
(on page 7-106)
io.flush()
(on page 7-107)
io.open()
(on page 7-108)

format.asciiprecision

This attribute sets the precision (number of digits) for all numbers returned in the ASCII format.
Type
TSP-Link accessible
Attribute (RW)
No
Usage
precision = format.asciiprecision
format.asciiprecision = precision
precision
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)
Also see
format.byteorder
format.data
(on page 7-94)
print()
(on page 7-152)
printbuffer()
(on page 7-153)
printnumber()
7-92
(on page 7-89)
(on page 7-89)
Affected by
Instrument reset
Recall setup
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
(on page 7-93)
(on page 7-156)
Series 2600B System SourceMeter® Instrument Reference Manual
Where saved
Not saved
Output:
2.540000000e+00
2.54e+00
Default value
***need to define ASCIIPrecision
variable***
2600BS-901-01 Rev. B / May 2013

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents