User manual
In this section: 
Introduction ....................................................................... 2-1 
Test Script Processor (TSPTM) ........................................ 2-2 
Run-time environment ....................................................... 2-3 
Queries ............................................................................. 2-3 
Scripts ............................................................................... 2-4 
Named scripts ................................................................... 2-5 
Programming overview ..................................................... 2-6 
Installing the TSPTM software ........................................ 2-10 
System connections ........................................................ 2-10 
Using Test Script Builder (TSB) ...................................... 2-13 
Sending commands and statements ............................... 2-15 
Measure voltage ............................................................. 2-15 
User scripts ..................................................................... 2-16 
Differences: Remote versus local state ........................... 2-32 
Test Script Language (TSL) Reference ........................... 2-33 
Introduction 
Conventional electronic test and measurement equipment responds to 
command messages sent to the instrument. Each command message contains 
one or more commands that the instrument executes in order. To conduct a test, 
a computer controller is programmed to send a sequence of commands to an 
instrument. The controller orchestrates the actions of the instrumentation. 
Typically, the controller is programmed to request measurement results from the 
instrumentation and make test sequence decisions based on those 
measurements. 
In addition to operating as conventional instruments, Keithley Instruments‟ Test 
Script Processor (TSP)-based instruments are capable of executing scripts that 
process commands in the instrument rather than needing to be sent from a 
computer. Basically, a script allows you to have a program running inside the 
instrument to execute a sequence of commands without the need to send them 
individually from a computer. Once a script is loaded into the instrument, it only 
needs to be called (similar to a function) to execute the desired command 
sequence. In the sections that follow, you will learn what a script is, and how to 
create, save, and load a script. 
Section 2 
TSP Programming Fundamentals 










