Printnumber() - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2450 Interactive SourceMeter® Instrument Reference Manual

printnumber()

This function prints numbers using the configured format.
Type
TSP-Link accessible
Function
No
Usage
printnumber(value1)
printnumber(value1, value2)
printnumber(value1, ..., valueN)
value1
value2
valueN
...
Details
There are multiple ways to use this function, depending on how many numbers are to be printed.
This function prints the given numbers using the data format specified by format.data and
format.asciiprecision.
Example
format.asciiprecision = 10
x = 2.54
printnumber(x)
format.asciiprecision = 3
printnumber(x, 2.54321, 3.1)
Also see
format.asciiprecision
format.byteorder
format.data
print()
(on page 8-77)
printbuffer()
2450-901-01 Rev. B/September 2013
Affected by
(on page 8-62)
(on page 8-63)
(on page 8-64)
(on page 8-78)
Where saved
First value to print in the configured format
Second value to print in the configured format
Last value to print in the configured format
One or more values separated with commas
Configure the ASCII precision to 10 and set x to
2.54.
Read the value of x based on these settings.
Change the ASCII precision to 3.
View how the change affects the output of x and
some numbers.
Output:
2.540000000e+00
2.54e+00, 2.54e+00, 3.10e+00
Section 8: TSP command reference
Default value
8-81

Advertisement

Table of Contents
loading

Table of Contents