Section 7: Command reference
Model 2651A High Power System SourceMeter® Instrument Reference Manual
7-158
2651A-901-01 Rev. A / March 2011
Also see
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
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
Accessing the catalog of scripts stored in nonvolatile memory allows you to process all scripts in nonvolatile
memory. The entries will be enumerated in no particular order.
Each time the body of the function executes,
name
takes on the name of one of the scripts stored in nonvolatile
memory. The
for
loop repeats until all scripts have been iterated.