![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750254.webp)
Model 2657A High Power System SourceMeter® Instrument Reference Manual
Section 6: Instrument programming
2657A-901-01 Rev. B/December 2012
6-5
To load a named script by sending commands:
1. Send the command
loadscript
scriptName
, where
scriptName
is the name of the script.
The name must be a legal Lua variable name.
2. Send the commands that need to be included in the script.
3. Send the command
endscript
.
4. You can now run the script. See
To run the script immediately, use
loadandrunscript
scriptName
instead of
loadscript
.
Create a script using TSB Embedded
If you are using TSB Embedded to create scripts, you do not need to use the commands
loadscript
or
loadandrunscript
and
endscript
.
You can create a script from the instrument web page with TSB Embedded. When you save the script
in TSB Embedded, it is loaded into the run-time environment and saved in the nonvolatile memory of
the instrument. For information about using TSB Embedded, select the
Help
button on a web page or
the Help option from the navigation pane on the left side of the web interface.
To create a script using TSB Embedded:
1. In the TSP Script box, enter a name for the script.
2. In the input area, enter the sequence of commands to be included in the script.
3. Click
Save Script
. The name is added to the User Scripts list on the left.
Run scripts
This section describes how to run the anonymous and named scripts.
If the instrument is in local control when the script is started, it switches to remote control (
REM
is
displayed) while the script is running. The instrument is returned to local control when the script
completes. If you press the front-panel
EXIT (LOCAL)
key while the script is running, the script is
stopped.
Run the anonymous script
The anonymous script can be run many times without reloading it. It remains in the run-time
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()
NOTE
NOTE
NOTE
Содержание 2657A
Страница 3: ......