Agilent Technologies 8590 TV Converter Box User Manual


 
Test Program
The program shown below is written to work with computers using
BASICA
(version 2.0
or later) or GW BASIC. To test the interconnection, first load the BASIC language for your
computer and specify a communications buffer of 4096 bytes. Use the following command:
BASICA/C:4096
Set the spectrum analyzer baud rate to 9600, to match the baud rate set up for the computer
port in the test program. In line 20, the “9600” indicates 9600 baud for the computer port.
Press the following keys to set the baud rate:
c-1,
More
1
of 3 , BAUD RATE , 9600, (Hz).
Enter the following test program. The program shows that the computer is able to send
instructions to, and read information from, the spectrum analyzer.
10 'File
= TESTPGM
20 OPEN
"COMl:9600,N,8,1"
AS
#l
30 PRINT
#l,"IP;"
40 PRINT
#l,"SNGLS;"
50 PRINT
#l,"CF
300MZ;TS;"
60 PRINT
#l,"CF?;"
70 INPUT
#l,CENTER
80
PRINT,"CENTER
FREQ =
";CENTER;"Hz"
90 END
When you have entered the program, type:
SAVE "TESTPGM"
When you are ready to run the program, turn on the spectrum analyzer and run your program.
The program tells the spectrum analyzer to perform an instrument preset and enter single
sweep mode. Next, the program sets the center frequency to 300 MHz and takes a sweep.
The program then queries the center frequency value and tells the computer to display
CENTERFREQUENCY=
3.OE+8Hz.
If the computer does not display the center frequency, refer to “If There is a Problem” at the
end of this chapter.
l-10 Preparing for Use