![Keithley 707B Скачать руководство пользователя страница 198](http://html.mh-extra.com/html/keithley/707b/707b_reference-manual_661685198.webp)
Models 707B and 708B Switching Matrix Reference Manual
Section 6: Instrument programming
707B-901-01 Rev. A / August 2010
6-7
Run the anonymous script
The anonymous script can be run many times without reloading it. It remains in the runtime
environment until a new anonymous script is created or until the instrument is turned off.
To run the anonymous script, use any one of these commands:
•
run()
•
script.run()
•
script.anonymous()
•
script.anonymous.run()
Run a named script
Any named script that is in the runtime environment can be run using one of the following commands:
•
scriptVar()
•
scriptVar.run()
where
scriptVar
is the user-defined name of the script.
To run a named script from TSB Embedded, select the script from the User Scripts list and click
Run
.
When a script is named, it can be accessed using the global variable
scriptVar
.
Example
Code Output
test3()
If the script
test3
is loaded into the runtime
environment, the instrument executes
test3
.
Scripts that run automatically
The autorun scripts and the autoexec script run automatically when the instrument is turned on.
Autorun scripts
Autorun scripts run automatically when the instrument is turned on. You can set any number of scripts
to autorun. The run order for autorun scripts is arbitrary, so make sure the run order is not important.
To set a script to run automatically, send a command containing the script name with
.autorun
appended to it, set the autorun attribute to
"yes"
, and then type and send the save command:
scriptVar.autorun = "yes"
scriptVar.save()
Where:
scriptVar
is the user-defined name of the script.
To disable autorun, set the attribute to
"no"
.