Section 9: TSP command reference Series 2600B System SourceMeter® instrument Reference Manual
9-184 2600BS-901-01 Rev. F/August 2021
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.
Usage
for name in script.user.catalog() do body end
String representing the name of the script
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.
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.
Example
for name in script.user.catalog() do
print(name)
end
Retrieve the catalog listing for user scripts.
Also see
None
scriptVar.autorun
This attribute controls the autorun state of a script.
Usage
scriptVar.autorun = "state"
state = scriptVar.autorun
The name of the variable that references the script
String that indicates whether or not the script runs automatically when powered on:
â–ª yes: Script runs automatically
â–ª no: Script does not run automatically