System SourceMeter® Instrument Reference Manual Section 6:
2600BS-901-01 Rev. C / August 2016 6-29
Programming example
The following script puts a message on the front panel display slowly — one character at a time. The
intent of this example is to demonstrate:
• The use of a for loop
• Simple display remote commands
• Simple Lua string manipulation
When creating a script using the TSB Embedded, you do not need the shell commands
loadscript and endscript, as shown in the examples below.
Example: User script
User script created in TSB Embedded User script created in user's own program
myMessage = "Hello World!"
for k = 1, string.len(myMessage) do
x = string.sub(myMessage, k, k)
display.settext(x)
print(x)
delay(1)
myMessage = "Hello World!"
for k = 1, string.len(myMessage) do
x = string.sub(myMessage, k, k)
display.settext(x)
print(x)
delay(1)
Test Script Builder (TSB)
Keithley Instruments Test Script Builder (TSB) is a software tool included with your Series 2600B.
You can install and use TSB to develop scripts for TSP-enabled instruments.
Installing the TSB software
The installation files for the Test Script Builder software are available for download from the Keithley
Downloads web page (http://www.tek.com/downloads).
To install the Test Script Builder (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.