Example Programs
G-2
Measure and Display Reading;
:MEASure? Command
Microsoft QuickBASIC 4.5
Keithley KPC-488.2 Interface
©1992, Keithley Instruments, Inc.
Description
Every time this program is run, the Model 2002 goes to the
most sensitive DCV range and makes a single measurement
using the :MEASure command. The reading is then dis-
played on the computer CRT.
Required equipment
• Model 2002 Multimeter
• Microsoft QuickBASIC 4.5
• Any one of the following IEEE-488 interfaces:
Keithley Model KPC-488.2
Keithley Model KPC-488.2AT
Capital Equipment Corporation PC<>488
The program assumes that the Model 2002 is set to address
16.
Loading user library
The user library for QuickBASIC 4.5 is provided with the
IEEE-488 interface (ieeeqb.qlb). Assuming QuickBASIC
and the user library are in the same DOS directory, enter the
following command line from the DOS prompt:
QB /L ieeeqb.qlb
The above command line will load QuickBASIC and the
user library.
Program (2002tst.bas)
CALL initialize(21, 0)
' Init as system controller
'MODEL 2002 COMMANDS
CALL send(16, "*CLS", Gpib.status%)
CALL send(16, ":meas:volt:dc?", Gpib.status%)
' Measure DCV
data$ = SPACE$(80)
CALL enter(data$, Gpib.len%, 16, Gpib.status%)
PRINT data$
' Display reading
END
Summary of Contents for 2002
Page 123: ...Front Panel Operation 2 106...
Page 145: ...IEEE 488 Reference 3 22...
Page 167: ...IEEE 488 Reference 3 44...
Page 284: ...A Specifications A 1...
Page 362: ......
Page 364: ...This page left blank intentionally...
Page 365: ......