
2606B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2606B-901-01 Rev. B / May 2018
7-167
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 the 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 virtual 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
(on page 6-4)
Retrieve source code one line at a time
scriptVar.name
This attribute contains the name of a script in the run-time environment.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
No
Not applicable
Not applicable
Not applicable
Usage
scriptVar
.name =
scriptName
scriptName
= s
criptVar
.name
scriptVar
Name of the variable that references the script
scriptName
A string that represents the name of the script
Details
When setting the script name, this attribute renames the script that the variable
scriptVar
references.