Running A User Script - Keithley 3700 series Reference Manual

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

Advertisement

Section 2: TSP Programming Fundamentals
Examples:
1. Assume a script named ―test1‖ has been created and loaded. The following command saves
the script in nonvolatile memory:
test1.save()
2. To save the script named ―test1‖ under a file name (―test2‖) (on a user supplied USB flash
drive), send the following command:
test1.save(test2)

Running a user script

Running an unnamed script
There can only be one unnamed script in the run-time environment. If another unnamed script is
created and loaded, the previous unnamed script will be removed from the run-time
environment. On the front panel, an un-named script appears as <anonymous>. Use one of the
following commands to execute the chunk of the last loaded unnamed script. Both commands
perform the same operation.
run()
script.run()
Running a named script
Any named script that is in the run-time environment can be run using one of the following
commands. Both commands perform the same operation.
myscript()
myscript.run()
Where: myscript is the user-defined name of the script.
Example:
Assume a script named ―test3‖ has been loaded into the run-time environment. The following
command executes the chunk of the script.
test3()
Running scripts automatically
Scripts can be set to run automatically when the Series 3700 is turned on. One or more scripts
can be set to autorun, and one script can be set to autoexec.
2-18
Series 3700 System Switch/Multimeter Reference Manual
Document Number: 3700S-901-01 Rev. A / August 2007

Advertisement

Table of Contents
loading

Table of Contents