Section 6
Instrument programming
In this section:
Fundamentals of scripting for TSP ........................................... 6-1
Fundamentals of programming for TSP ................................. 6-14
Using Test Script Builder (TSB) ............................................. 6-37
Working with TSB Embedded ................................................ 6-37
Advanced scripting for TSP .................................................... 6-39
TSP-Link system expansion interface .................................... 6-47
TSP-Net ................................................................................. 6-60
Fundamentals of scripting for TSP
NOTE
The next few sections of the documentation describe scripting and programming features of the
instrument. You do not need to review this information if you do not need to use scripting and
programming.
Scripting helps you combine commands into a block of code that the instrument can run. Scripts help
you communicate with the instrument more efficiently. In the instrument, the Test Script Processor
(TSP
®
) scripting engine processes and runs scripts.
Scripts offer several advantages over sending individual commands from the control computer:
•
Scripts are easier to save, refine, and implement than individual commands.
•
The instrument performs faster and more efficiently when processing scripts.
•
You can incorporate features such as looping and branching into scripts.
•
Scripts allow the controller to perform other tasks while the instrument is running a script,
enabling some parallel operation.
•
Scripts eliminate repeated data transfer times from the controller.
While it can improve your process to use scripts, you do not have to create scripts to use the
instrument. Most of the examples in the documentation can be run by sending individual command
messages.
This section describes how to create, load, modify, and run scripts.