In this section:
Fundamentals of scripting for TSP ......................................... 10-1
Fundamentals of programming for TSP ............................... 10-15
Using Test Script Builder (TSB) ........................................... 10-33
Advanced scripting for TSP .................................................. 10-44
TSP-Link system expansion interface .................................. 10-52
Connections ......................................................................... 10-54
Initialization .......................................................................... 10-54
Resetting the TSP-Link network ........................................... 10-55
Using the expanded system ................................................. 10-56
TSP advanced features ........................................................ 10-58
Using groups to manage nodes on TSP-Link network ......... 10-58
Running simultaneous test scripts ........................................ 10-59
Using the data queue for real-time communication .............. 10-61
Copying test scripts across the TSP-Link network ............... 10-61
Removing stale values from the reading buffer cache ......... 10-61
TSP-Net ............................................................................... 10-62
Fundamentals of scripting for TSP
Though 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. The next few sections of the documentation describe scripting and programming features
of the instrument. You only need to review this information if you are using 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.
Scripts offer several advantages compared to sending individual commands from the host controller
(computer):
•
Scripts are easier to save, refine, and implement than individual commands.
•
The instrument performs more quickly and efficiently when it processes scripts than it does when
it processes individual commands.
•
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.
In the instrument, the Test Script Processor (TSP
®
) scripting engine processes and runs scripts.
This section describes how to create, load, modify, and run scripts.
Section 10
Instrument programming