Section 6: Instrument programming
Series 2600B System SourceMeter® Instrument Reference Manual
6-38
2600BS-901-01 Rev. C / August 2016
When you create a script using the
script.new()
function without providing a name, the script is
added to the run-time environment as an unnamed script. The
script.new()
function returns the
script, but the script is not 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 run-time 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.
Figure 111: Global variables and scripts in the runtime environment