Restore A Script To The Runtime Environment; Rename A Script - Keithley 708B Reference Manual

Switching matrix
Hide thumbs Also See for 708B:
Table of Contents

Advertisement

Models 707B and 708B Switching Matrix Reference Manual

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
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.
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()
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.
707B-901-01 Rev. A / August 2010
Output
Restores a user script named "test9" from
nonvolatile memory.
NOTE
Section 6: Instrument programming
6-41

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

707b

Table of Contents