Send individual instrument commands with TSB Embedded
You can send individual commands to the instrument using TSB Embedded. The response from the
instrument appears in the Output box.
To send commands from the console:
1. Type the command in Console.
2. Press the Enter key to send the command to the instrument. The command is displayed in the
Output box. If there is a response to the command, it is displayed after the command.
To clear information from the Output box:
1. Right-click in the Output box.
2. Select Clear.
To copy information from the Output box:
1. Right-click in the Output box.
2. Select Copy. The information is copied to the clipboard.
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 runtime environment from nonvolatile memory when you turn the
instrument on. They are also added to the runtime environment when you load them into
the instrument.
A script in the runtime environment can be:
• A named script
• An unnamed script
• The anonymous script (which is a special unnamed script)
Script names can be assigned by using the loadscript command or by defining the scriptVar
parameter of the script.new() function. When a named script is loaded into the
runtime environment:
• A global variable with the same name is created so that you can reference the script
more conveniently.
• An entry for the script is added to the script.user.scripts table.