3-20 Automating Measurements
Operator Interaction
Using a Foot or Hand Switch
210 ELSE
220 ASSIGN @Hp8711 TO 716
230 ABORT 7
240 CLEAR 716
250 END IF
260 !
270 Pass_count=0
280 Start: !
290 LOOP
300 ! Display message
310 Msg$="'DUTs passed: "&VAL$(Pass_count)&CHR$(10)
320 Msg$=Msg$&"Press button to measure next DUT.'"
330 OUTPUT @Hp8711;"DISP:ANN:MESS ";Msg$
340 !
350 ! Wait for button to be pressed
360 REPEAT
370 OUTPUT @Hp8711;"DIAG:PORT:READ? 15,1"
380 ENTER @Hp8711;X
390 UNTILX=0
400 DISP "Button is now pressed."
410 OUTPUT @Hp8711;"DISP:ANN:MESS:CLEAR"
420 !
430 ! Wait for button to be released
440 REPEAT
450 OUTPUT @Hp8711;"DIAG:PORT:READ? 15,1"
460 ENTER @Hp8711;X
470 UNTILX=1
480 DISP "Button is now released."
490 !
500 OUTPUT @Hp8711;"DISP:ANN:MESS 'Measuring...'"
510 ! Add code here to take sweep
520 ! and measure DUT.
530 WAIT 1
540 Pass_count=Pass_count+1
550 END LOOP
560 END