Example Program
10 ! RE-STORE "DC_ADJUST"
30 !This program performs the firmware-guided DC adjustment procedure
40 !for the HP E1340A Arbitrary Function Generator. An HP 3458A DMM
50 !is required.
60 !
70 COM @Afg,@Dmm
80 DIM Results(1:14),Id$[100]
90 INTEGER This_point,Max_cal_point,Problem,Err_num
100 !
110 !---------- Set up I/O paths ----------
120 ASSIGN @Afg TO 70910
130 ASSIGN @Dmm TO 722
140 !
150 !
160 !---------- Initialize variables ----------
170 Max_cal_point=14
180 This_point=0
190 !
200 !---------- Check firmware rev ----------
210 OUTPUT @Afg;"*IDN?"
220 ENTER @Afg;Id$
230 IF POS(Id$,"A.01.00") THEN
240 BEEP 1000,.2
250 PRINT "This procedure requires a firmware revision of A.01.02 or later."
260 STOP
270 END IF
280 !
290 !---------- Initialize AFG and DMM ----------
300 OUTPUT @Afg;"*RST;*CLS"
310 WAIT .5
320 !
330 OUTPUT @Dmm;"PRESET NORM"
340 OUTPUT @Dmm;"FUNC DCV;NPLC 10;RANGE 1"
350 !
360 !---------- Connections ----------
370 CLEAR SCREEN
380 PRINT "Connect the DMM to the AFG Output"
390 DISP "Press ’Continue’ when ready"
400 PAUSE
410 CLEAR SCREEN
420 !
430 !---------- Setup AFG ----------
440 OUTPUT @Afg;"CAL:DC:BEGIN"
!Begin DC cal
450 WAIT 1
460 OUTPUT @Afg;"*OPC?"
!Wait for previous command to finish
470 ENTER @Afg;Not_busy
480 !
(Continued on Next Page
)
Chapter 3
Adjustments 67
Содержание 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 ...