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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Controlling Trace Data with a Computer<br />

Using sample programs, this section shows you how to read trace data <strong>and</strong> store the data with<br />

your computer.<br />

Reading Trace Data<br />

The following program, which has been annotated with comments, reads a trace from the<br />

spectrum analyzer <strong>and</strong> stores the trace data in a variable.<br />

Program Example for the <strong>HP</strong>-IB Interface<br />

10 !FILE: “IBPROG5”<br />

20 !create a 401 point trace array:<br />

30 REAL Trace,a(l:401)<br />

40 Analyzer=718<br />

50 OUTPUT Analyzer;“IP; ‘I<br />

60 !set the output format of the spectrum analyzer for<br />

70 !real numbers:<br />

80 OUTPUT Analyzer ; “TDF P ; I’<br />

90 !set the spectrum analyzer parameters:<br />

100 OUTPUT Analyzer; “SNGLS; ‘I<br />

110 OUTPUT Analyzer ; “CF 300MZ ; ‘I<br />

120 OUTPUT Analyzer ; “SP 200MZ ; ‘I<br />

130 OUTPUT Analyzer ; “TS ; ‘I<br />

140 OUTPUT Analyzer; “MKPK HI ; ‘I<br />

150 !move peak to center of spectrum analyzer screen:<br />

160 OUTPUT Analyzer ; “MKCF ; I’<br />

170 OUTPUT Analyzer ; “TS ; ‘I<br />

180 !ask the spectrum analyzer for trace data:<br />

190 OUTPUT Analyzer ; “TRA? ; ‘I<br />

200 !send the trace data to the computer:<br />

210 ENTER Analyzer;Trace-a(*)<br />

220 OUTPUT Analyzer ; “CONTS; I’<br />

230 LOCAL 7<br />

240 END<br />

Trace data can be read with the computer by making three changes to the program created in<br />

Chapter 2. First, we modify the program to create a 401-point trace array, called Trace-a, in<br />

which the trace data will be stored. Second, the program uses the TRA comm<strong>and</strong> to request<br />

trace A data. (The MKA <strong>and</strong> MKF comm<strong>and</strong>s from the previous program have been deleted.)<br />

Third, the spectrum analyzer sends trace A data to the variable, Trace-a.<br />

3-2 Programming Topics

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

Saved successfully!

Ooh no, something went wrong!