2 TSP Programming Fundamentals
Introduction ................................................................................................ 2-3
Test Script Processor (TSP) ................................................................ 2-3
Run-time environment ......................................................................... 2-4
Queries ................................................................................................ 2-4
Scripts .................................................................................................. 2-4
Named scripts ...................................................................................... 2-5
Functions ............................................................................................. 2-5
Scripts that create functions ................................................................ 2-6
Programming overview .............................................................................. 2-7
What is a chunk? ................................................................................. 2-7
What is a script? .................................................................................. 2-7
Run-time environment ......................................................................... 2-8
Non-volatile memory ............................................................................ 2-9
TSP programming levels ..................................................................... 2-9
Programming model for scripts ............................................................ 2-9
Installing the Test Script Builder software ................................................ 2-11
System connections ................................................................................. 2-11
GPIB .................................................................................................. 2-11
RS-232 .............................................................................................. 2-12
Using Test Script Builder .......................................................................... 2-13
Starting Test Script Builder ................................................................. 2-15
Opening communications .................................................................. 2-16
Creating and modifying a script ......................................................... 2-18
Script launch configuration ................................................................ 2-23
Launching a script ............................................................................. 2-26
Running a TSP file ............................................................................. 2-27
Retrieving scripts from the Series 2600 ............................................. 2-27
Instrument Console ........................................................................... 2-29
File management tasks ...................................................................... 2-35
Sending commands and statements ........................................................ 2-39
Source-measure voltage and current ................................................ 2-39
Read and write to Digital I/O port ....................................................... 2-39
Display user-defined messages ........................................................ 2-39
User scripts .............................................................................................. 2-40
Script examples ................................................................................. 2-40
Creating a user script ........................................................................ 2-43
Saving a user script ........................................................................... 2-44
Running a user script ......................................................................... 2-44
Modifying a user script ....................................................................... 2-47
Script management ........................................................................... 2-47
Factory scripts .......................................................................................... 2-49
Running a factory script ..................................................................... 2-49
Modifying a factory script ................................................................... 2-49