Tektronix AM700 User Manual

Page of 271
AM700 Audio Measurement Set Programmer Manual
4–1
Examples
The example given here is based on writing a function. Functions can be learned
through the front panel, but they may also be written externally to the AM700 Audio
Measurement Set loaded when needed. Functions are a list of SCPI (Tcl) commends
used to direct the measurements of the audio measurement set.
Writing a Function
Functions may be created externally to the AM700 using Tcl programming and
loaded through the floppy disk drive into the file system of the AM700. Front panel
menus for loading files into the internal file system are called up by the Storage
button. Functions may also be loaded through SCPI commands using the PROGram
subsystem commands.
A function program may be very simple or it may contain many steps. A running
function program in interpreted by the Tcl parser. Some Tcl formatting information
is required.
A few points are mentioned here to show why they are used in the sample. Full
information on Tcl programming is found in Part 1 of Tcl and the Tk Toolkit:
Addison-Wesley Publishing Company, 1994.
 Tcl comments are preceded by a # symbol as the first non-blank character in
the line. The # symbol appearing in the line at other locations is treated as any
other character.
 If double quote marks are in used in a SCPI command, they must be escaped
by a backslash (\“string\”) in order to pass them to SCPI using the Tcl scpi
command.
 Precede all SCPI commands with the string “scpi ”.
Sample
Function
Program