EasyManua.ls Logo

Keithley 2600B

Keithley 2600B
897 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Section
7: TSP command reference Series 2600B System SourceMeter® Instrument
Reference Manual
7-166 2600BS-901-01 Rev. C / August 2016
Details
TSP-enabled instruments do not have inherent query commands. Like any other scripting
environment, the print() command and other related print() commands generate output. The
print() command creates one response message.
The output from multiple arguments are separated with a tab character.
Numbers are printed using the format.asciiprecision attribute. If you want use Lua formatting,
print the return value from the tostring() function.
Example 1
x = 10
print(x)
Example of an output response message:
1.00000e+01
Note that your output might be different if you set
your ASCII precision setting to a different value.
Example 2
x = true
print(tostring(x))
Example of an output response message:
true
Also see
format.asciiprecision (on page 7-101)
printbuffer()
This function prints data from tables or reading buffer subtables.
Type TSP-Link accessible
Affected by Where saved Default value
Function No
Usage
printbuffer(startIndex, endIndex, bufferVar)
printbuffer(startIndex, endIndex, bufferVar, bufferVar2)
printbuffer(startIndex, endIndex, bufferVar, ..., bufferVarN)
startIndex
Beginning index of the buffer to print; this must be more than one
and less than
endIndex
endIndex
Ending index of the buffer to print; this must be more than
startIndex and less than the index of the last entry in the tables
bufferVar
Name of first table or reading buffer subtable to print; may be a
default buffer (defbuffer1 or defbuffer2) or a user-defined
buffer
bufferVar2
Second table or reading buffer subtable to print; may be a default
buffer (
defbuffer1
or
defbuffer2
) or a user-defined buffer
bufferVarN
The last table or reading buffer subtable to print; may be a default
buffer (
defbuffer1
or
defbuffer2
) or a user-defined buffer
...
One or more tables or reading buffer subtables separated with
commas

Table of Contents

Related product manuals