Example Program
10 ! RE-STORE "AC_ADJUST"
20 !This program performs the firmware-guided AC adjustment procedure
30 !for the HP E1340A Arbitrary Function Generator. An HP 3458A DMM
40 !and an HP 8902A Measuring Receiver are required.
50 !
60 COM @Afg,@Dmm,@Pwr_mtr
70 INTEGER This_point,Cal_point,Max_cal_point,Syst_err,Err_num,Pm_setup
80 !
90 !---------- Set up I/O paths ----------
100 ASSIGN @Afg TO 70910
110 ASSIGN @Dmm TO 722
120 ASSIGN @Pwr_mtr TO 714
130 CLEAR SCREEN
140 !
150 !---------- Initialize variables ----------
160 Max_cal_point=16
170 Freq_step=1342177.28
180 Pm_setup=1
190 !
200 !---------- Initialize AFG and DMM ----------
210 OUTPUT @Afg;"*RST;*CLS"
220 WAIT .5
230 !
240 !---------- Get power meter correction factor ----------
250 CALL Corr_factor(Corr_factor)
260 PRINT "CORRECTION FACTOR =";Corr_factor
270 PRINT
280 !
290 !---------- Setup AFG ----------
300 This_point=1
310 OUTPUT @Afg;"CAL:AC:BEGIN"
!Begin DC cal
320 WAIT 1
330 !
340 !---------- Cal loop ----------
350 !
360 Pm_setup=1
370 PRINT USING Fmat1;"CAL STEP","ERR CODE","READING","ERROR (DB)"
380 PRINT
390 Fmat1:IMAGE 8A,4X,8A,6X,7A,6X,10A
400 !
(Continued on Next Page
)
72 Adjustments
Chapter
3
Содержание 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 ...