13: Introduction to TSP commands 2470 High Voltage SourceMeter Instrument
13-12 2470-901-01 Rev. A / May 2019
C
ommon commands that cannot be used in scripts are shown in the following table with equivalent
commands that can be used.
Unavailable commands with TSP equivalents
Common commands TSP equivalent commands
eventlog.clear() status.clear()
print(status.standard.enable)
print(status.standard.event)
print(localnode.serialno)
No equivalent
waitcomplete() print([[1]])
print(status.request_enable)
Fundamentals of programming for TSP
To conduct a test, a computer (controller) is programmed to send sequences of commands to an
instrument. The controller orchestrates the actions of the instrumentation. The controller is typically
programmed to request measurement results from the instrumentation and make test sequence
decisions based on those measurements.
To take advantage of the advanced features of the instrument, you can add programming commands
to your scripts. Programming commands control script execution and provide tools such as variables,
functions, branching, and loop control.
The Test Script Processor (TSP
®
) scripting engine is a Lua interpreter. In TSP-enabled instruments,
the Lua programming language has been extended with Keithley-specific instrument control
commands.