225 Series User’s Manual
13
118120-001-Rev. A
PROG. REMARKS
10
OPEN “\DEV\IEEEOUT” FOR OUTPUT
AS #1 Set up output file
20
IOCTL#1, “BREAK” Clear buffers in Basic
30
PRINT#1, “RESET” Init. the bus with IFC
40
OPEN “\DEV\IEEEIN” FOR INPUT AS#2
Set up input file to Basic
50
PRINT#1, “REMOTE 07” Place the 225 in
remote
60
INPUT “COMMAND”; A$
70
PRINT#1, “OUTPUT 07;” A$
Address 225 to listen and send the string
80 INPUT
“COMMAND”,
A$
90
PRINT#1, “OUTPUT 07;” A$
100
PRINT#1, “ENTER 07” Address 225 to talk
110
LINE INPUT#2, A$ Input the bytes
120
PRINT A$ Display the reading
130 END
7.2
IBM PS/2 USING IO TECH INTERFACE
(DOS 3.1 OR HIGHER REQUIRED)
1.
Equip the computer with the IO Tech PS/2
488A Interface.
2.
Install software driver per the PS/2 488A
manual instructions.
3.
Set the address switches on the 225 Series to 7.
4.
Run the Basic interpreter with comes with the
computer.
5.
Enter the lines of the program below using the
return key after each line.
6.
Press RUN (F2) after the total program has been
executed. Enter a command when prompted. For
example, if you enter “P0.1000KG”, wait approximately
two seconds, and then enter “T1”, the resulting display is
nominally “N V0.1000K”
PROG. REMARKS
10
OPEN “\DEV\IEEEOUT” FOR OUTPUT AS
#1
Set up output file
20 IOCTL#1,
“BREAK”
Clear buffers in Basic
30 PRINT#1,
“RESET”
Init. the bus with IFC
40
OPEN “\DEV\IEEEIN” FOR INPUT AS#2
Set up input file to Basic
50 PRINT#1,
“REMOTE
07”
Place the 225 in remote
60
INPUT “COMMAND”; A$
70
PRINT#1, “OUTPUT 07;” A$
Address 225 to listen and send the string
80 PRINT#1,
“ENTER
07”
Address the 225 to talk
90
INPUT “COMMAND”; A$
100
PRINT#1, “OUTPUT 07;” A$
110 LINE
INPUT#2,
A$
Input
the
bytes
120
A$
Display the reading
130 END
7.3 HP
85/86/87
1.
Equip the computer with an HP 82937 GPIB
interface and an I/O ROM.
2.
Set the address switches on the 225 Series to 7.
3.
Enter the lines in the program below. Use the
END LINE key after each line.
4.
Press the RUN key when the total program is
entered. Enter a command when prompted to do so. For
example, if you enter “P0.1000KG”, wait approximately
two seconds, and then enter “T1”, the resulting display
will nominally show the string “N V0.1000K”
PROG. REMARKS
10
REMOTE
707
Place 225 in remote
20 DISP
“Command”
Prompt for command
30 INPUT
A$
40
OUTPUT
707A$
Address 225 to listen, send string
50 DISP
“Command”
60 INPUT
A$
70 OUTPUT
707;A$
80
ENTER
707;A$
Address 225 to talk, return reading
90
DISP
A$
Display ready on CRT
100 END
7.4 HP9825A
1.
Equip the computer with the HP98034A GPIB
interface and the extended I/O ROM.
2.
Set the address switches on the 225 Series to 7.
3.
Enter the lines in the program below using the
“STORE” key after each line.
4.
Press the RUN key when the total program is
entered. Enter a command when prompted to do so. For
example, if you enter “P0.1000KG”, wait approximately
two seconds, and then enter “T1”, the resulting display is
nominally “N V0.1000K”
PROG. REMARKS
10 Rem
707
Place 225 in remote
20 Ent
“COMMAND”,
A$
Prompt for command
30
Wrt 707, A$
Address 225 to listen, send command
40 Ent
“COMMAND”,
A$
50 Ert
“COMMAND”,
A$
60
Red
707,
A$
Address 225 to talk, input reading
70
Prt A$
reading