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.

Returning the <strong>Spectrum</strong> Analyzer to its Former State<br />

The following programs read a trace stored in a file <strong>and</strong> load it into a variable.<br />

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

10 !FILE: "IBPROGS"<br />

20 !define 202 character string:<br />

30 DIM Learn,string$[202]<br />

40 !create 401 point array to store trace:<br />

50 INTEGER Trace,a(l:401)<br />

60 Analyzer=718<br />

70 !assign path to the file:<br />

80 ASSIGN @File TO "STATE"<br />

90 !get values for Learn-string$<br />

100 !<strong>and</strong> Trace-a(*) from disk:<br />

110 ENTER OFile;Learn-string$,Trace,a(*)<br />

120 !send learnstring to spectrum analyzer:<br />

130 OUTPUT Analyzer;"IP DONE;"<br />

140 ENTER Analyzer<br />

150 OUTPUT Analyzer;Learn-string$<br />

160 !set single sweep mode:<br />

170 OUTPUT Analyzer;"SNGLS;"<br />

180 !prepare spectrum analyzer for a trace from<br />

190 !the computer:<br />

200 OUTPUT Analyzer;"TRA #A";<br />

210 !send trace to the spectrum analyzer<br />

220 OUTPUT Analyzer USING "#,W";802,Trace-a(*)<br />

230 !view trace to see it was sent:<br />

240 OUTPUT Analyzer;"VIEW TRA;"<br />

250 !close file:<br />

260 ASSIGN @File TO *<br />

270 END<br />

The <strong>HP</strong>-IB program reads a trace stored in the file STATE, then loads it into the variable<br />

Trace-$ *).<br />

First, the settings of the spectrum analyzer that were stored in the variable LEARN$ are<br />

recalled. The spectrum analyzer state is changed to the same state as when the trace was<br />

stored. Then previously stored trace data is returned to the spectrum analyzer <strong>and</strong> the trace is<br />

viewed on the spectrum analyzer screen. Finally, line 220 uses the <strong>HP</strong> BASIC USING comm<strong>and</strong><br />

to format the trace data.<br />

3-l 2 Programming Topics

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

Saved successfully!

Ooh no, something went wrong!