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.

330 OUTPUT @Sa;"MKPK HI; TS;"<br />

340 OUTPUT OSa;"MKTRACK ON; SP IOOKZ; TS;"<br />

350 !turn off signal track:<br />

360 OUTPUT QSa;"MKTRACK OFF;"<br />

370 !find the peak of the signal; move peak to center<br />

380 !of screen:<br />

390 OUTPUT OSa;"AUNITS V;"! MAKE READOUT UNITS VOLTS<br />

400 !find peak of signal; send amplitude value to<br />

410 !computer<br />

420 !enter the amplitude of the fundamental:<br />

430 OUTPUT @Sa;"MKPK HI; MKA?;"<br />

440 ENTER OSa;Fund,amptd-v<br />

450 !send marker frequency to the computer, enter<br />

460 !frequency value:<br />

470 OUTPUT OSa;"MKF?;"<br />

480 ENTER OSa;Fundamental<br />

490 !make the fundamental frequency the center freq<br />

500 !step size:<br />

510 OUTPUT OSa;"MKSS;"<br />

520 !set the fundamental frequency units to MHz:<br />

530 Fundamental=Fundamental/l.E+6<br />

540 Harmonics: !measure the amplitudes of the harmonics:,<br />

550 FOR Number=2 TO Max-harmonic<br />

560 DISP "MEASURING HARMONIC #";Number<br />

570 OUTPUT @Sa;"SP 20MZ;" !set span to 20 MHz<br />

580 OUTPUT @Sa;"CF UP; TS;" !tune to next harmonic<br />

590 !take second sweep to allow spectrum analyzer to move to the<br />

600 !center frequency; find the signal peak; activate<br />

610 !signal track:<br />

620 OUTPUT @Sa;"TS;"<br />

630 OUTPUT @Sa;"MKPK HI; MKTRACK ON; SP IOOKZ; TS;"<br />

640 !turn off signal track:<br />

650 OUTPUT OSa;"MKTRACK OFF;"<br />

660 !find signal peak; send amplitude value to computer<br />

670 !enter the amplitude of the harmonic:<br />

680 OUTPUT OSa;"MKPK HI; MKA?;"<br />

690 ENTER QSa;Harmonic-v(Number)<br />

700 NEXT Number<br />

710 !set amplitude units to dBm:<br />

720 OUTPUT OSa;"AUNITS DBM;"<br />

730 !calculate the fundamental amplitude in dBm because<br />

740 !it was measured in volts:<br />

750 Fund,amptd_dbm=lO*LGT(Fund_amptd_v^2/.05)<br />

760 !calculate the sum of the squares of the amplitudes<br />

770 !of the harmonics; calculate amplitudes of<br />

780 !harmonics (dBm):<br />

790 Sum-sqr=O<br />

800 FOR I=2 TO Max-harmonic<br />

810 Sum,sqr=Sum,sqr+Harmonic,v(I)^2<br />

820 Harmonic-dbc(I)=20*LGT(Fund-amptd-v/Harmonic-v(1))<br />

830 NEXT I<br />

3-l 6 Programming Topics

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

Saved successfully!

Ooh no, something went wrong!