Example program
The program below demonstrates how to read back and display calibration standard values.
To use this program, you will need the following:
• IBM PC compatible computer.
• Microsoft QBasic (supplied with DOS 5 – 6.22).
• CEC or Keithley IEEE-488 interface card installed in the computer.
• Installed CECHP.EXE driver (supplied with above interface card).
' Program to read Model 5156 standard values via Model 6514.
' 6514 primary address = 14.
OPEN
“IEEE” FOR OUTPUT AS #1 ' Open IEEE-488 output path.
OPEN
“IEEE” FOR INPUT AS #2 ' Open IEEE-488 input path.
PRINT
#1, “INTERM CRLF” ' Set input terminator.
PRINT
#1, “OUTTERM LF” ' Set output terminator.
PRINT
#1, “REMOTE 14” ' Put 6514 in remote.
CLS
PRINT
“Model 5156 Calibration Standard values:”
PRINT
#1, “OUTPUT 14;:CAL:UNPR:KI5156?” ' Query 5156 standard values.
PRINT
#1, “ENTER 14”
INPUT
#2, R100G, R10G, R1G, R100M, C1NF, C100NF
PRINT
#1, “LOCAL 14”
CLOSE
PRINT
“100 G ohm value:”; R100G
PRINT
“10 G ohm value:”; R10G
PRINT
“1 G ohm value:”; R1G
PRINT
“100 M ohm value:”; R100M
PRINT
“1 nF value:”; C1NF
PRINT
“100 nF value:”; C100NF
END
Calibration Options H-3