Models 707B and 708B Switching Matrix Reference Manual
Section 6: Instrument programming
707B-901-01 Rev. B / January 2015
6-33
Project navigator
The project navigator consists of project folders and the script files (.tsp) created for each project.
Each project folder can have one or more script files.
To view the script files in a project folder, click the plus (+) next to the project folder. To hide the folder
contents, click the minus (
−
) next to the project folder.
You can download a TSP project to the instrument and run it, or you can run it from the TSB
interface.
Script editor
The script editor is where you write, modify, and debug scripts.
To open and display a script file, double-click the file name in the project navigator. You can have
multiple script files open in the script editor at the same time. Each open script file is displayed on a
separate tab.
To display another script file that is already open, click the tab that contains the script in the script
editor area.
Programming interaction
This part of the workspace is where you interact with the scripts that you are building in Test Script
Builder (TSB). The actual contents of the programming interaction area of the workspace can vary.
You can send commands from the Instrument Console command line, retrieve data, view variables
and errors, and view and set breakpoints when using the debug feature.
Advanced scripting for TSP
The following topics describe advanced information that can help you understand how the Test Script
Processor (TSP
®
) scripting engine works.
Global variables and the script.user.scripts table
When working with script commands, it is helpful to understand how scripts are handled in the
instrument.
Scripts are loaded into the run-time environment from nonvolatile memory when you turn the
instrument on. They are also added to the run-time environment when you load them into the
instrument.
A script in the run-time environment can be:
•
A named script
•
An unnamed script
•
The anonymous script (which is a special unnamed script)