A. 2 . 1 8
GPI B
Sample
Program
A sampl e GPIB program writ ten on a Hewlet t-Packard H P85B is lis ted,
fo l lowed by remark s. The HPIB address is 700 and the 2150/2160 IEEE
addre s s was se t a t 1, s o t a l k or l i s ten func t ions wi l l s how t he
addres s 701 in the program.
Program:
400 DIM A $ [ 5 0 J
5 0 0 DIM C$ [ 5 0 J
550 OUTPUT 701
;
" REMOTEON "
600 OUTPUT 701
;
" REMOTE [ "
800 P RINT " ENTER SETUP COMMAND "
900 PRIN T " THEN PRESS RETURN "
1000 PRINT " IF NO MORE COM MANDS"
1100 PRIN T " TYPE '0 RETURN ' "
1200 INPUT C$
1300 PRINT C$
1350 PRINT " "
1400 CLEAR
1500 IF C$ = " 0 " THEN GOTO 1800
1600
OUTPUT 701
;
C$
1700
GOTO 1200
1800
OUTPU T 701
;
tf J
II
1900
PRIN T
" #
OF MEASUREMENTS "
2000
INPUT
J
2100
P RINT J
2200
FOR 1 =1
TO
J
2300
OUTPUT
701
"SINGL E "
2400
s =0
2500
S=SPOL L ( 701)
2600 IF S > =64 THEN
GOTO 2800
2700
IF s = 0 THEN
GO TO
2400
2800
ENTER 701
;
A$
Remark s :
400 Open fie l d for measuremen t
s t ring.
500 Open fiel d for command s t ring.
550 Send REMOTEON to 2150/ 2160.
600 Temporari l y disconnec t keyboard
and s tar t switch.
1200 Input one command from remote
setup dic tionary.
1500 If C$ =0 t hen go to meas u rement
por tion of p rogram.
1600 Addres s 2150/2160 and send
command.
1700 Return to setup routine if C$
not 0.
1800 Re-ac tiva te screen and keyboard
at end of se tup.
2000 Opera tor inpu t s number of
single cycle operations the
2150/2160 wil l perform.
2 2 00 ' I ' wil l be the number of
operations.
2300 Addre s s the 2150/2160 and send
the ' SINGLE ' command.
2400 Set variable S to 0.
2500 Moni tor the 2150/2160 to see
if the SRQ has been set.
2600 If SRQ is set then add re s s
the 2150/2160 and prin t the
measurement s t ring.
2700 If SRQ has not been set then
remain in SRQ monitor mode.
2800 Address 2150/2160 and read
outpu t s t ring.
e
I
s
I
i
A
-
40
2150/2 160 5/85
Summary of Contents for VideoBridge 2150
Page 24: ...BLANK 1 6 e l s l i 2 1 50 2 1 60 5 8 5...
Page 230: ...R54 R 1 9 R23 6 TP8 o O NC N N N N a a a a a F i gure 5 5...
Page 252: ...A t S E C T I ON A A 4 5 0 0 m m 5 rY1 m A...
Page 307: ...Figure 8 1 General Handler Interface Circuit Assembly P N 47895 B 2 e s i 2150 2160 5 85...
Page 330: ...F i gure 8...