Models 707B and 708B Switching Matrix Reference Manual
Section 5: Introduction to TSP operation
707B-901-01 Rev. B / January 2015
5-3
Queries
Test Script Processor (TSP
®
) enabled instruments do not have inherent query commands. Like any
other scripting environment, the
print()
and
printnumber()
commands generate output in the
form of response messages. Each
print()
command creates one response message.
Example
x = 10
print(x)
Example of an output response message:
1.001
Note that your output may be different if you set your ASCII
precision setting to a different value.
Data retrieval commands
You can send data retrieval commands that return a comma-delimited string. For example,
print(memory.available())
returns the amount of memory that is available in the instrument.
The comma-delimited string that is returned starts with the lowest channel and goes to the highest
channel on Slot 1. It then lists each subsequent slot until the highest slot is reached.
Information on scripting and programming
If you need information about using scripts with your TSP-enabled instrument, see
(on page 6-1).
If you need information about using the Lua programming language with the instrument, see
Fundamentals of programming for TSP
(on page 6-10).
About TSP commands
This section contains an overview of the TSP commands for the instrument. The commands are
organized into groups, with a brief description of each group. Each section contains links to the
detailed descriptions for each command in the TSP command reference section of this
documentation (see TSP commands).
Beeper control
The beeper commands allow you to enable or disable and sound the instrument beeper.
(on page 7-8)
(on page 7-8)