Test 2-10: Spurious/Non-Harmonic Distortion (cont’d)
Example Program (cont’d)
400 !---------- Per form test ----------
410 FOR I=1 TO 9
420 CLEAR SCREEN
430 PRINT "Set Spectrum Analyzer Start Freq to: ";Start_freq(I);"Hz"
440 PRINT "Set Spectrum Analyzer Stop Freq to: ";Stop_freq(I);"Hz"
450 PRINT "Measure the amplitude of the highest peak."
460 PRINT
470 INPUT "Enter amplitude (in dBm):",Peak_ampl
480 PRINT "Result =";VAL(Dbm_out$)-Peak_ampl;"dBc" !Calculate res ult in dBc
490 DISP "Press ’Continue’ when ready"
500 PAUSE
510 DISP
520 NEXT I
530 !
540 OUTPUT @Afg;"*RST;*CLS" !Reset AFG
550 END
72 Verification Te sts Agilent E1445A Serv ice Manual