Model 2651A High Power System SourceMeter® Instrument Reference Manual
Section 6: Instrument programming
2651A-901-01 Rev. A / March 2011
6-43
Figure 87: Change a named script with an unnamed script
name
value
reference to script named
beepTwoSec
script.user.scripts table
beepTwoSec
reference to an unnamed
script
Global variables
Scripts in the runtime environment
reference to script named
beepTwoSec
No
Autorun
beeper.enable = 1
beeper.beep(2, 2400)
script name
source
No
Autorun
script name
source
beepTwoSec
beeper.enable = 1
beeper.beep(2, 1200)
beepTwoSec
beepTwoSec1200
Note that the script.user.scripts table
entry referencing beepTwoSec was
removed and a new entry for
beepTwoSec has been added
Restore a script to the runtime environment
You can retrieve a script that was removed from the runtime environment but is still saved in
nonvolatile memory.
To restore a script from nonvolatile memory back into the runtime environment:
script.restore("
scriptName
")
Where:
scriptName
is the user-defined name of the script to be restored.
For example, to restore a user script named
"test9"
from nonvolatile memory:
script.restore("test9")
Rename a script
You can rename a script. You might want to rename a script if you need to name another script the
same name as the existing script. You could also rename an existing script to be the autoexecute
script.