Section 7: TSP command reference
Models 707B and 708B Switching Matrix Reference Manual
7-4
707B-901-01 Rev. B / January 2015
Using the TSP command reference
The TSP command reference contains detailed descriptions of each of the TSP commands that you
can use to control your instrument. Each command description is broken into subsections. The figure
below shows an example of a command description.
Figure 91: Example instrument command description
The subsections contain information about the command. The subsections are:
•
Command name and summary table
•
Usage
•
Details
•
Example
•
Also see
The content of each of these subsections is described in the following topics.
Command name and standard parameters summary
Each instrument command description starts with the command name, followed by a table with
relevant information for each command. Definitions for the numbered items in the figure below are
listed following the figure.
1.
Instrument command name
. Signals the beginning of the command description and is followed
by a brief description of what the command does.
2.
Type of command
. Options are:
Function
. Function-based commands control actions or activities, but are not always directly
related to instrument operation. Function names are always followed by a set of parentheses,
for example,
digio.writeport(15)
.
If the function does not need a parameter, the
parentheses set remains empty, for example,
exit()
.
Attribute (R),
(RW),
or
(W)
. Attribute-based commands set or read the characteristics of an
instrument feature or operation by defining a value. For example, a characteristic of a
TSP-enabled instrument is the model number (
localnode.model
); another characteristic is
the number of errors in the error queue (
errorqueue.count
). For many attributes, the
defined value is a number or predefined constant. Attributes can be read-only (R), read-write
(RW), or write-only (W), and can be used as a parameter of a function or assigned to another
variable.
Constant.
A constant command represents a fixed value when used in a script.