Chapter 3
GPIB 488.1 Library Reference
Example
C
Programming Reference Manual
This example uses the
all devices (ASCII ?, hex 3F), and then to address a Talker at MTA26
(ASCII Z, hex 5A) and a Listener at MLA11 (ASCII +, hex 2B).
then called to unassert the ATN line and place the GPIB board in Standby
mode. This action allows the Talker to send messages to the Listener. Note
that the GPIB commands/addresses are coded using printable ASCII
characters, for example, "?Z+".
int gpib1;
gpib1 = ibfind ("GPIB1");
ibsic (gpib1);
ibcmd (gpib1, "?Z+", 3);
ibgts (gpib1, 1);
routine to instruct GPIB board 1 to unlisten
ibcmd
3-26
is
ibgts
GPIB-488