09.12.2012 Views

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Test Program<br />

The program shown below is written to work with computers using BASICA (version 2.0<br />

or later) or GW BASIC. To test the interconnection, first load the BASIC language for your<br />

computer <strong>and</strong> specify a communications buffer of 4096 bytes. Use the following comm<strong>and</strong>:<br />

BASICA/C:4096<br />

Set the spectrum analyzer baud rate to 9600, to match the baud rate set up for the computer<br />

port in the test program. In line 20, the “9600” indicates 9600 baud for the computer port.<br />

Press the following keys to set the baud rate: c-1, More 1 of 3 , BAUD RATE , 9600, (Hz).<br />

Enter the following test program. The program shows that the computer is able to send<br />

instructions to, <strong>and</strong> read information from, the spectrum analyzer.<br />

10 'File = TESTPGM<br />

20 OPEN "COMl:9600,N,8,1" AS #l<br />

30 PRINT #l,"IP;"<br />

40 PRINT #l,"SNGLS;"<br />

50 PRINT #l,"CF 300MZ;TS;"<br />

60 PRINT #l,"CF?;"<br />

70 INPUT #l,CENTER<br />

80 PRINT,"CENTER FREQ = ";CENTER;"Hz"<br />

90 END<br />

When you have entered the program, type:<br />

SAVE "TESTPGM"<br />

When you are ready to run the program, turn on the spectrum analyzer <strong>and</strong> run your program.<br />

The program tells the spectrum analyzer to perform an instrument preset <strong>and</strong> enter single<br />

sweep mode. Next, the program sets the center frequency to 300 MHz <strong>and</strong> takes a sweep.<br />

The program then queries the center frequency value <strong>and</strong> tells the computer to display<br />

CENTERFREQUENCY= 3.OE+8Hz.<br />

If the computer does not display the center frequency, refer to “If There is a Problem” at the<br />

end of this chapter.<br />

l-10 Preparing for Use

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!