User manual
Series 3700 System Switch/Multimeter Reference Manual Section 2: TSP Programming Fundamentals
3700S-901-01 Rev. C / July 2008 2-25
To execute the myuserlist script:
script.user.scripts.myuserlist()
mylist()
Running a user script
Running an unnamed script
There can only be one unnamed (anonymous) script in the run-time
environment. If another anonymous script is created and loaded, the previous
anonymous script will be removed from the run-time environment. On the front
panel, an unnamed script appears as <anonymous>. Use one of the following
commands to execute the chunk of the last loaded anonymous script. The
following four commands perform the same operation.
run()
script.run()
script.anonymous()
script.anonymous.run()
Running a named script
Any named script that is in the run-time environment can be run using one of the
following commands. The following four commands perform the same operation.
myscript()
myscript.run()
script.user.scripts.myscript()
script.user.scripts.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 commands execute the chunk of the script.
test3()
script.user.scripts.test3()
Running scripts automatically
Scripts can be set to run automatically when the Series 3700 is turned on. You
can assign one or more Autorun scripts (on page 2-26) and one Autoexec script
(on page 2-26).