
2606B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2606B-901-01 Rev. B / May 2018
7-165
Details
This command copies the script from nonvolatile memory into the run-time environment. It also
creates a global variable with the same name as the name of the script.
Example
script.restore("test9")
Restores a script named
test9
from nonvolatile
memory.
Also see
(on page 7-161)
script.run()
This function runs the anonymous script.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
script.run()
run()
Details
Each time the
script.run()
command is given, the anonymous script is executed. This script can
be run using this command many times without having to re-send it.
Example
run()
Runs the anonymous script.
Also see
(on page 7-160)
script.user.catalog()
This function returns an iterator that can be used in a
for
loop to iterate over all the scripts stored in nonvolatile
memory.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
for
name
in script.user.catalog() do
body
end
name
String representing the name of the script
body
Code that implements the body of the
for
loop to process the names in the catalog
Details
This function accesses the catalog of scripts stored in nonvolatile memory, which allows you to
process all scripts in nonvolatile memory. The entries are enumerated in no particular order.