Section 6: Instrument programming
Series 2600B System SourceMeter® Instrument Reference Manual
6-38
2600BS-901-01 Rev. B / May 2013
You cannot retrieve a deleted script. Be sure to back up your script to your computer before deleting.
To delete a script from TSB embedded:
1. Select the script from the User Scripts area.
2. Click
Delete
.
To modify a script:
1. Select the script from the User Scripts area.
2. Modify the code in the script editor.
3. Click
Save Script
to validate the syntax and save the script.
4. The following message is displayed:
Script <filename> will be overwritten
. Do one of the
following:
•
To overwrite the script, click
OK
.
•
To save the script with a new name, click
Cancel
and then type the name of the script in the name field.
To export a script to be saved on an external drive (or to store as a backup on your computer):
1. To export a script, click the name of the script in the User Scripts area.
2. Click
Export to PC
. The Save dialog box is displayed.
3. Go to the file or directory in the Look In list.
4. In the
File Name
field, type the name of the file, and then click
Save
.
Advanced scripting for TSP
The following topics describe advanced information that can help you understand how the Test Script
Processor (TSP
®
) scripting engine works.
Global variables and the script.user.scripts table
When working with script commands, it is helpful to understand how scripts are handled in the
instrument.
Scripts are loaded into the run-time environment from nonvolatile memory when you turn the
instrument on. They are also added to the run-time environment when you load them into the
instrument.
A script in the run-time environment can be:
•
A named script
•
An unnamed script
•
The anonymous script (which is a special unnamed script)
When a named script is loaded into the runtime environment:
•
A global variable with the same name is created to reference the script more conveniently.
•
An entry for the script is added to the
script.user.scripts
table.
Summary of Contents for System SourceMeter 2601B
Page 841: ......