Example Programs
G-17
• Model 8501-1 Trigger Link Cable (connect 2002 to
7001 or 7002)
• Model 7014 Thermocouple Multiplexer Card (installed
in slot 1 of 7001 or 7002)
• Two Type K Thermocouples (connected to channels 2
and 3 of 7014)
• 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, and the address of the switch system (Model 7001 or
7002) is set to 7.
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 (bufclint.bas)
'$INCLUDE: 'IEEEQB.BI'
'
' Initialize global variables.
'
CLS
DmmAddr% = 16
ScanAddr% = 7
Rdg$ = SPACE$(200)
cmd$ = SPACE$(80)
Sme$ = SPACE$(10)
'
'
' Initialize GPIB.
'
CALL initialize(21, 0)
CALL setoutputEOS(10, 0)
CALL setinputEOS(10)
CALL settimeout(5000)
cmd$ = "*CLS"
GOSUB send2002
' Clear 2002
cmd$ = "*CLS"
GOSUB send7001
' Clear 7001
Scan Thermocouple Card; Model 7014
Microsoft QuickBASIC 4.5
Keithley KPC-488.2 Interface
©1992, Keithley Instruments, Inc.
Description
This program scans and measures five channels of the Model
7014 Thermocouple Multiplexer Card. Channels 2 and 3 are
configured for Type K TC temperature measurements using
channel 1 as the reference junction. Channels 4 and 5 are
configured for DCV measurements on the 2V range. Seven
scans are performed for a total of 35 measurements.
After all 35 readings are stored in the buffer, they are dumped
out over the bus to the computer where each reading is dis-
played. Also displayed on the computer CRT is the total pro-
cessing time (in seconds) for the 35 readings and the average
time for each reading.
Required equipment
• Model 2002 Multimeter
• Model 7001 or 7002 Switch System
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: ......