Section 10: Instrument programming Model 2601B-PULSE System SourceMeter Instrument Reference Manual
10-30 2601B-PULSE-901-01A April 2020
Programming example
The following script puts a message on the front-panel display slowly, one character at a time. This
example demonstrates:
• The use of a for loop
• Simple display remote commands
• Simple Lua string manipulation
Example: User script
display.clear()
myMessage = "Hello World!"
for k = 1, string.len(myMessage) do
x = string.sub(myMessage, k, k)
display.settext(x)
print(x)
delay(1)
end
Test Script Builder
Keithley Instruments Test Script Builder (TSB) is a software tool you can use to develop scripts for
TSP-enabled instruments.
Installing the TSB software
The installation files for the TSB software are available at tek.com/keithley.
To install the TSB software:
1. Close all programs.
2. Download the installer to your computer and double-click the .exe file to start the installation.
3. Follow the on-screen instructions.