![Keithley 2651A Скачать руководство пользователя страница 283](http://html1.mh-extra.com/html/keithley/2651a/2651a_reference-manual_661729283.webp)
Model 2651A High Power System SourceMeter® Instrument Reference Manual
Section 6: Instrument programming
2651A-901-01 Rev. A / March 2011
6-39
Advanced scripting for TSP
Global variables and the script.user.scripts table
When working with script commands, it can be helpful to understand how scripts are handled in the
instrument.
Scripts are loaded into the runtime environment from nonvolatile memory when you turn the
instrument on. They are also added to the runtime environment when you load them into the
instrument.
There are several types of scripts in the runtime environment:
•
Named scripts
•
Unnamed scripts
•
The anonymous 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.
When an unnamed script is loaded using the
(on page 7-155) function, a global variable
is added. Nothing is added to the
script.user.scripts
table.
When the anonymous script is loaded, it does not have a global variable or an entry in the
script.user.scripts
table. If there is an existing anonymous script, it is replaced by the new
one.
When the instrument is turned off, everything in the runtime environment is deleted, including the
scripts and global variables.
See the figure below to see how the scripts, global variables, and
script.user.scripts
table
interrelate.