B System SourceMeter® Instrument Reference Manual Section 6:
2600BS-901-01 Rev. B / May 2013 6-39
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 113: Global variables and scripts in the runtime environment