8: TSP command reference Model 2461 Interactive SourceMeter® Instrument
8-98 2461-901-01 A/November 2015
Details
When this attribute is enabled, the IEEE Std 488.2 common commands generate prompts if
prompting is enabled with the localnode.prompts attribute. If localnode.prompts4882 is
enabled, limit the number of *trg commands sent to a running script to 50 regardless of the setting
of the localnode.prompts attribute.
When this attribute is disabled, IEEE Std 488.2 common commands will not generate prompts. When
using the *trg command with a script that executes trigger.wait() repeatedly, disable
prompting to avoid problems associated with the command interface input queue filling.
Example
localnode.prompts4882 = localnode.DISABLE
Disables IEEE Std 488.2 common command
prompting.
Also see
localnode.prompts (on page 8-86)
script.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
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.catalog() do
print(name)
Retrieve the catalog listing for user scripts.
Also see
None