
8-60
IM AQ6370C-17EN
The following program specifies an external device connected to the [GP-IB2] connector
as a listener to send a device message and then specifies the device as a talker to
receive data from it.
Received data is displayed on the OUTPUT WINDOW. The program repeats these
operations 10 times.
001 OUTPUT WINDOW CLEAR
:Clear the OUTPUT WINDOW
data.
002 OUTPUT WINDOW ON
:Display the OUTPUT
WINDOW.
003 N=10 :Set loop counter N to 10
:Set "10" to loop counter
"N."
004 SEND 1’B,C1,E1,H1,S ’
:Specify the external
device of address 1 as
a listener to send the
contents of ’ ’ to it.
005 WAIT 1S :1
:Cause a wait of 1 sec.
006 RECEIVE 1;A$
:Specify the device of
address 1 as a talker to
receive data from it and
substitute received data
into character variable
A$.
007 DATA OUTPUT @@@@@
:Output the contents of A$
to OUTPUT WINDOW.
008 N=N-1;IF N<>0 GOTO 4
:Substart 1 from loop
counter N and if the
result is not 0, make a
jump to line 004.
009 END
:End
the
program.
8.5 Sample Program