Saving A User Script - Keithley 3700 series Reference Manual

System switch/multimeter
Hide thumbs Also See for 3700 series:
Table of Contents

Advertisement

Series 3700 System Switch/Multimeter Reference Manual
The loadscript shell command loads the script into the run-time environment. The script can be
assigned a name or it can be left nameless. If assigning a name that already exists for another
loaded script, the old script will be overwritten with the new script.
If a script is not named when it is loaded into the run-time environment, it will be lost when
another script is loaded or when the Series 3700 is turned off. After loading the unnamed script,
use the run()or script.run() command to run it.
A special name for a script is autoexec. After an autoexec script is saved in nonvolatile memory,
the script will automatically run after the Series 3700 is powered on and all autorun scripts have
been executed. For details, see ―Autoexec script‖ and ―Autorun scripts‖ later in this section.
loadandrunscript
loadsandruncript name
Where: name is the user-assigned name for the script.
These commands are similar to the loadscript commands except that the script will execute
(run) after it is loaded into the run-time environment. Also, the autorun attribute for a named
script will be set to ―yes‖ (see ―myscript.autorun‖ later in this section).

Saving a user script

A created and loaded script does not have to be saved in the memory of the Series 3700 before
it can be run. However, an unsaved script will be lost when the Series 3700 is turned off.
Saving a named script
Only a named script can be saved in nonvolatile memory of the Series 3700. After creating and
loading a named script, use one of the following commands to save it.
myscript.save()
myscript.save("filename")
Where:
myscript is the user-defined name of the script.
filename is a filename for the script to save it on a user supplied USB flash drive.
The above save command will save the script to nonvolatile in memory. If a script is not saved
save this way (in nonvolatile memory), the script will be lost when the Series 3700 is turned off.
The myscript.save() command saves the script under the name that it was originally created and
loaded. The myscript.save("filename") shell command is used to save the script to a user
supplied USB flash drive. If you save the script to a filename that already exists, it will be
overwritten.
Document Number: 3700S-901-01 Rev. A / August 2007
Section 2: TSP Programming Fundamentals
2-17

Advertisement

Table of Contents
loading

Table of Contents