Keithley 3700 series Reference Manual page 39

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

Advertisement

Series 3700 System Switch/Multimeter Reference Manual
Autorun scripts
When a saved script is set to autorun, it will automatically load and run when the Series 3700 is
turned on. Any number of scripts can be set for autorun. The run order for these scripts is
arbitrary, so make sure the run order is not important.
To set a script for autorun, set the following autorun attribute to ―yes.‖ Setting it to ―no‖ disables
autorun.
myscript.autorun
Where: myscript is the user-defined name of the script.
Make sure to save the script in nonvolatile memory after setting the autorun attribute.
Example:
Assume a script named ―test5‖ is in the run-time environment. The script can be set to autorun
as follows:
test5.autorun = "yes"
test5.save()
The next time the Series 3700 is turned on, the ―test5‖ script will automatically load and run.
NOTE The loadandrunscript name command sets the autorun attribute for that script to ―yes.‖ To
Autoexec script
One script can be designated as the autoexec script. When the Series 3700 is turned on, the
autoexec script will start after all the autorun scripts have run.
loadscript autoexec
loadandrunscript autoexec
An autoexec script can be formed by creating a new script and naming it autoexec (as shown
above using loadscript or loadandrunscript). After loading the new script, send the
autoexec.save() command to save it in nonvolatile memory. See
2-16) for details on creating a script.
Running a user script from the Series 3700 front panel
The following commands are used to enter or delete a name into the User menu:
display.loadmenu.add(displayname, script)
display.loadmenu.delete(displayname)
Where:
Document Number: 3700S-901-01 Rev. A / August 2007
cancel autorun, set the autorun attribute to ―no‖ and save the script.
Section 2: TSP Programming Fundamentals
Creating a user script
(on page
2-19

Advertisement

Table of Contents
loading

Table of Contents