Agilent Technologies 8590 TV Converter Box User Manual


 
When a certain measurement is repeated often, a computer program can save time. In
addition, the computer is less likely to make an error than an operator manually entering the
same instructions from the front panel.
Program Example for the RS-232 Interface
First, we set the center frequency to 300 MHz. The CF command corresponds to the center
frequency function,
Cm
FREQ
. (All spectrum analyzer commands, such as CF, are
described in Chapter 5.)
Insert the following program lines between lines 40 and 50 of the previous program.
41 PRINT
#l,"CF
300MZ;"
Next, set the span to 200 MHz with the SP command. Add the following program line:
42 PRINT
#l,"SP
200MZ;"
Because we are controlling the sweep, we must update the spectrum analyzer display with the
following program line:
43 PRINT
#l,"TS;"
When the program is executed, the spectrum analyzer takes one full sweep before executing
line 41. Line 41 changes the center frequency to 300 MHz. Line 42 changes the span to
200
MHz.
Enter the following program line to place a marker at the highest peak on the trace:
44 PRINT
#l,"MKPK
HI;"
The completed program is shown below:
10 'File
=
232PROG2
20 OPEN
"COMl:9600,N,8,1"
AS #1
30 PRINT
#l,"IP;"
40 PRINT
#l,"SNGLS;TS;"
41 PRINT
#l,"CF
300MZ;"
42 PRINT
#l,"SP
200MZ;"
43 PRINT
#l,"TS;"
44 PRINT
Xl,"MKPK
HI;"
50 END
Run the program to make the measurement. Watch the spectrum analyzer display as it
completes each instruction. When a certain measurement is repeated often, a computer
program can save time. Also, the computer is much less likely to make an error than an
operator manually entering the same instructions from the front panel.
Writing a Program
2-5