Keithley 2001 Operator's Manual page 429

Multimeter
Hide thumbs Also See for 2001:
Table of Contents

Advertisement

IBM PC/XT/AT or PS/2 with
IOtech Driver488 Software
F.6
Introduction
Driver488 software is an IEEE-488 driver for IBM PC and
compatible computers. When combined with an IEEE-488
interface board, the package can control devices from
languages including BASIC, Pascal, Fortran, and C.
Driver488 software is compatible with:
• IOtech GP488B or GP488/2 boards
• National Instruments GPIB-PC, PCII, PCIIA, or PCIII
boards
• Capital Equipment #01000-00300 board
• IBM GPIB Adapter
The following GW-BASIC program sends a command mes-
sage to the Model 2001 and displays the instrument response
IOTECH
10
OPEN "\DEV\IEEEOUT" FOR OUTPUT AS #1
20
IOCTL#1, "BREAK"
30
PRINT#1,"RESET"
35
PRINT #1, "TERM LF EOI"
40
OPEN "\DEV\IEEEIN" FOR INPUT AS #2
50
PRINT#1, "FILL ERROR"
60
LINE INPUT "Enter Program Message ";A$
70
IF LEN(A$)=0 THEN 140
80
PRINT #1,"OUTPUT 16;"+A$
90
Length = LEN(A$)
100
FOR I = 1 TO Length
110
Char$ = MID$(A$, I, 1)
120
IF Char$ ="?" THEN GOTO 150
130
NEXT
140
GOTO 60
150
PRINT #1,"ENTER 16"
160
LIN E INPUT#2,B$
170
PRINT B$
180
GOTO 60
190
END
2001-900-01 Rev. K / August 2010
for queries on the CRT. The computer must be equipped with
an IEEE-488 interface board, the DOS 3.00 (or later) operat-
ing system, and a language with DOS I/O capability.
Driver488 controller software must be installed and config-
ured as described in the instruction manual.
F.7
Directions
1. Using the front panel MENU key and the GPIB menu
item, set the primary address of the Model 2001 to 16.
2. With power off, connect the Model 2001 to the IEEE-
488 interface installed in the IBM computer.
3. Type in GWBASIC on the computer and get into the Mi-
crosoft interpretive BASIC language.
4. Enter the lines below using the return key after each
line.
5. Run the program and type in the desired command
string at the Enter Program Message prompt. For exam-
ple, to request a reading, type in :FETCh? and press the
RETURN key. The reading will be displayed on the
CRT.
' Open file for output.
' Reset.
' Open file for input.
' Enable Sequence error detect
' Prompt for and get commands.
' Check for null.
' Send commands.
' Determine length of string.
' Identify character in string.
' If "?", then goto 150.
' If not a query, goto 60.
' Address 2001 to talk.
' Display response message.
' Repeat.
Controller Programs
F-5

Advertisement

Table of Contents
loading

Table of Contents