Keithley 2450 Reference Manual page 498

Interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2450 Interactive SourceMeter® Instrument Reference Manual
Load a script by sending commands over a remote interface
To load a script over the remote interface, you can use the loadscript and endscript
commands.
The loadscript command starts the collection of messages that make up the script. When the
instrument receives this command, it starts collecting all subsequent messages instead of running
them immediately.
The endscript command tells the instrument to stop collecting messages. It then compiles the
collection of messages into a script. This script is loaded into the run-time environment.
To load a script:
Send the loadscript command with a script name. This tells the instrument to start collecting
messages for the script named testInfo:
loadscript testInfo
Send the script; this example displays text on the user display when the script is run:
display.settext(display.TEXT1, "Batch 233")
display.settext(display.TEXT2, "Test Information")
Send the command that tells the instrument that the script is complete:
endscript
Run the script by sending the script name followed by ():
testInfo()
The User Display swipe screen on the front panel shows the text "Batch 233 Test Information" when
you run this script.
To save the script to nonvolatile memory, send the command:
testInfo.save()
In summary, to load a 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. Send the script name followed by (). For more information, see
Running scripts using a remote interface
Running scripts using the front-panel interface
To run a script from the front-panel interface:
1. Press the MENU key.
2. Under Scripts, select Run. The RUN SCRIPTS window is displayed.
3. From the Available Scripts list, select the script you want to run.
4. Select Run Selected.
2450-901-01 Rev. B/September 2013
Section 7: Introduction to TSP operation
(on page 7-8).
7-7

Advertisement

Table of Contents
loading

Table of Contents