500 !---------- Initialize variables ----------
510 Num_points=15
!Number of test points
520 Step_size=1.E+6
!Test freq step size
530 Ref_freq=1000
!Reference frequency
540 Xover_freq=1.E+5
!Crossover frequency
550 Dmm_setup=1
560 Pm_setup=1
570 !
580 ALLOCATE Test_freq(1:Num_points),Results(1:Num_points)
590 !
600 !---------- Get ref readings ----------
610 !
620 !Get DMM reading at ref freq
630 Freq=Ref_freq
640 GOSUB Set_afg_freq
650 CALL Dmm_flat_rdg(Ref_freq,Dmm_ref,Dmm_setup)
660 PRINT "DMM REF READING =";Dmm_ref
670 !
680 !Get DMM & Power Meter readings at crossover freq
690 Freq=Xover_freq
700 GOSUB Set_afg_freq
710 !
720 CALL Dmm_flat_rdg(Xover_freq,Dmm_xover,Dmm_setup)
730 PRINT "DMM XOVER READING =";Dmm_xover
740 CALL Pm_flat_rdg(Xover_freq,Pm_xover,Pm_setup)
750 Correct_factor=Dmm_xover/Pm_xover
760 PRINT "POWER METER XOVER READING =";Pm_xover
770 Offset_factor=Dmm_ref
780 PRINT "CORRECTION FACTOR =";Correct_factor
790 PRINT
800 PRINT
810 !
820 !---------- Perform measurements at test freqs ----------
830 !
840 PRINT " FREQ READING (V) ERROR (dBm)"
850 PRINT " ---- ----------- -----------"
860 PRINT
870 !
880 FOR I=1 TO Num_points
890 Test_freq(I)=I*Step_size
!Calculate test freq
900 !
910 !Set AFG to test freq
920 Freq=Test_freq(I)
930 GOSUB Set_afg_freq
940 !
950 !Get reading
960 CALL Pm_flat_rdg(Test_freq(I),Reading,Pm_setup)
970 Flat_result=Reading*Correct_factor !Adjust reading
980 !Convert to dBm error
990
Flat_error_dbm=
PROUND((20*LGT(Flat_13.0103)-(20*LGT(Offset_13.0103),-4)
1000 Results(I)=Flat_error_dbm
!Store result in array
(Continued on Next Page)
44 Verification Tests
Chapter 2
Содержание E1340A
Страница 6: ...Notes 6 HP E1340A Arbitrary Function Generator Service Manual ...
Страница 8: ......
Страница 10: ...Notes 12 What s in this Manual HP E1340A Service Manual ...
Страница 18: ...Notes 20 General Information Chapter 1 ...
Страница 74: ...Notes 76 Adjustments Chapter 3 ...
Страница 78: ...Notes 80 Replaceable Parts Chapter 4 ...
Страница 104: ...Notes 106 Verification Tests C Programs Appendix A ...