![Keithley 707B Скачать руководство пользователя страница 232](http://html.mh-extra.com/html/keithley/707b/707b_reference-manual_661685232.webp)
Models 707B and 708B Switching Matrix Reference Manual
Section 6: Instrument programming
707B-901-01 Rev. A / August 2010
6-41
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.
Example
Code Output
script.restore("test9")
Restores a user script named "test9" from
nonvolatile memory.
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.
To change the name of a script, use the command:
scriptVar.name = "renamedScript"
where:
scriptVar
is the global variable name and “
renamedScript
” is the new name of the user
script that was referenced by the
scriptVar
global variable.
After changing the name, you need to save the original script to save the change to the name
attribute.
For example:
beepTwoSec.name = "beep2sec"
beepTwoSec.save()
beep2sec
can be run using the command:
script.user.scripts.beep2sec()
NOTE
If the new name is the same as a name that is already used for a script, the name of the existing
script is removed and that script becomes unnamed. This in effect removes the existing script if there
are no other variables that reference the previous script. If variables do reference the existing script,
the references remain intact.
Changing the name of a script does not change the name of any variables that reference that script.
After changing the name, the script can be found in the
script.user.scripts
table under its new
name.