Calibration Programs
B-6
PRINT #1, "ENTER 4"
INPUT #2, R, R$, S
Cmd$ = Cmd$ + " " + STR$(R)
CASE 10
PRINT #1, "OUTPUT 4;STBY"
PRINT "Connect calibrator to AMPS and INPUT LO jacks."
GOSUB KeyCheck
PRINT #1, "OUTPUT 4;"; Msg$
PRINT #1, "OUTPUT 4;OPER"
CASE 16
C$ = ":CAL:"
PRINT Msg$
END SELECT
IF I <> 1 AND I <> 15 AND I <> 16 THEN GOSUB Settle
PRINT #1, "OUTPUT 16;"; C$; Cmd$; ";*OPC"
' Send cal command to 2002.
GOSUB CalEnd
' Wait until cal step ends.
GOSUB ErrCheck
' Check for cal error.
NEXT I
'
LINE INPUT "Enter calibration date (yyyy,mm,dd): "; D$
PRINT #1, "OUTPUT 16;:CAL:PROT:DATE "; D$
GOSUB ErrCheck
LINE INPUT "Enter calibration due date (yyyy,mm,dd): "; D$
PRINT #1, "OUTPUT 16;:CAL:PROT:NDUE "; D$
GOSUB ErrCheck
PRINT #1, "OUTPUT 16;:CAL:PROT:SAVE"
' Save calibration constants.
GOSUB ErrCheck
PRINT #1, "OUTPUT 16;:CAL:PROT:LOCK"
' Lock out calibration.
PRINT #1, "OUTPUT 16;:SYST:PRES"
' Restore bench defaults.
PRINT "Calibration completed."
END
'
KeyCheck:
' Check for key press routine.
WHILE INKEY$ <> "": WEND
' Flush keyboard buffer.
PRINT : PRINT "Press any key to continue (ESC to abort program)."
DO: I$ = INKEY$: LOOP WHILE I$ = ""
IF I$ = CHR$(27) THEN GOTO EndProg
' Abort if ESC is pressed.
RETURN
'
CalEnd:
' Check for cal step completion.
PRINT "Performing calibration step #"; I
DO: PRINT #1, "SRQ?"
' Request SRQ status.
INPUT #2, S
' Input SRQ status byte.
LOOP UNTIL S
' Wait for operation complete.
PRINT #1, "OUTPUT 16;*ESR?"
' Clear OPC.
PRINT #1, "ENTER 16"
INPUT #2, S
PRINT #1, "SPOLL 16"
' Clear SRQ.
INPUT #2, S
RETURN
'
ErrCheck:
' Error check routine.
PRINT #1, "OUTPUT 16;:SYST:ERR?"
' Query error queue.
PRINT #1, "ENTER 16"
INPUT #2, E, Err$
IF E <> 0 THEN BEEP: PRINT : PRINT Err$
' Display error.
RETURN
'
CheckSwitch:
' Check CAL switch status.
PRINT #1, "OUTPUT 16;:CAL:PROT:SWIT?"
PRINT #1, "ENTER 16"
INPUT #2, S
IF S = 1 THEN RETURN
PRINT "Press CAL switch to unlock calibration."
BEEP: PRINT #1, "LOCAL 16"
GOSUB KeyCheck
GOTO CheckSwitch
'
Содержание 2002
Страница 1: ...Model 2002Multimeter Calibration Manual A G R E A T E R M E A S U R E O F C O N F I D E N C E...
Страница 9: ...iv...
Страница 11: ...vi...
Страница 55: ...Calibration 2 26...
Страница 70: ...Specifications A 1 A Specifications...
Страница 83: ...A 14 Specifications...
Страница 101: ...Calibration Programs B 18...
Страница 113: ......