![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750477.webp)
Section 7: TSP command reference
Model 2657A High Power System SourceMeter® Instrument Reference Manual
7-164
2657A-901-01 Rev. B/December 2012
Make sure to save the script in nonvolatile memory after setting the
autorun
attribute so that the
instrument will retain the setting.
Example
test5.autorun = "yes"
test5.save()
Assume a script named "test5" is in the run-time
environment.
The next time the instrument is turned on, "test5"
script automatically loads and runs.
Also see
None
scriptVar.list()
This function generates a script listing.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function No
Usage
scriptVar
.list()
scriptVar
The name of variable that references the script
Details
This function generates output in the form of a sequence of response messages (one message for each line of
the script). It also generates output of the script control messages (
loadscript
or
loadandrunscript
and
endscript
).
Example
test7 = script.new("display.clear() display.settext('Hello from my test')",
"test7")
test7()
test7.save()
test7.list()
The above example code creates a script named "test7" that displays text on the front panel and lists the
script with the following output:
loadscript test7
display.clear() display.settext("Hello from my test")
endscript
Also see
Load a script by sending commands over the remote interface
Retrieve source code one line at a time
NOTE
Содержание 2657A
Страница 3: ......