Keithley SourceMeter 2600 Series Reference Manual page 100

Table of Contents

Advertisement

2-48 TSP Programming Fundamentals
The following function retrieves a script listing. The script chunk is returned, along
with the shell keywords (
myscript.list()
where:
Example:
Retrieve the listing for a saved script named "test7":
userscriptlist = test7.list()
print (userscriptlist)
Deleting a script from non-volatile memory
Replacing, changing or deleting a script from the run-time environment does not
remove the script from non-volatile memory. A script can be permanently
removed from non-volatile memory using either of the following commands:
script.delete("name")
script.user.delete("name")
where:
Example:
Delete a user script named "test8" from non-volatile memory:
script.delete("test8")
Restoring a script in the run-time environment
A script is inherently a global variable and can be replaced by assigning a new
value or by loading a new script with the same name. It can also be removed from
the run-time environment by assigning it the nil value. A script can be restored
from non-volatile memory back into the run-time environment using either of the
following commands:
script.restore("name")
script.user.restore("name")
where:
Example:
Restore a user script named "test9" from non-volatile memory:
script.restore("test9")
2600S-901-01 Rev. A / May 2006
Series 2600 System SourceMeters Reference Manual
loadscript
is the user-defined name of the script.
myscript
is the user-defined name of the script.
name
is the user-defined name of the script to be restored.
name
Return to
or
loadandrunscript
Section 2 topics
, and
):
endscript

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents