Agilent Technologies 71501D Video Eyeware User Manual


 
4-3
Programming Commands
Introduction
Introduction
Before communicating with the eye-diagram analyzer application, the Instru-
ment BASIC system must be queried for the name of the program and told we
wish to communicate with this program. The following example shows how to
do this.
OUTPUT Mta;"PROG:CAT?" !Request list of currently loaded programs
ENTER Mta;Name$ !There can only be one at present
OUTPUT Mta;"PROG:NAME ";Name$ !Send program name
Use Variables to Pass Commands and Data
Because the 70874A is an Instrument BASIC program, normal programming
techniques are not employed. Instead, program control is achieved through
manipulating three 70874C program variables: Command, Param, and
Response. Strings and numbers are passed to these variables via two micro-
wave transition analyzer commands:
PROG:STRing
PROG:NUMBer
The Command string variable directs the 70874C to perform an action.
Twelve possible command strings are documented in this chapter: ALIGN,
BIT, CLEAR, DEFAULT, DELAY, DIAGRAM, EXTIN, MARGIN,
MARMSK, MEAS, PERSIST, QUIT.
Load the Param variable with a parameter for the selected Command variable
string. Because execution begins immediately after Command is loaded, load
Param before Command. Param is actually two variables with the same name;
one is a string variable, the other is a numeric variable.
After execution of a command, the Response string variable contains any
resulting query data. The following program shows how to turn on infinite per-
sistence. Notice how the Param variable is loaded before the Command vari-
able.
OUTPUT Mta;"PROG:STR ’Param’,’INF’"
OUTPUT Mta;"PROG:STR ’Command’,’PERSIST’"
Use PROG:STR? to Read Response
The 70874A pauses execution after completion of each command. This pro-
vides a mechanism for synchronization between the issuance of a command
and the retrieval of a response. In your controlling program, use the