National Instruments NI-488.2M Software Reference Manual page 120

For os/2
Hide thumbs Also See for NI-488.2M:
Table of Contents

Advertisement

GPIB Programming Techniques
/*Board parallel poll configuration example*/
ibppc(0, 0x6C);
ibist(0, 1);
2.
Conduct the parallel poll using ibrpp and check the response for a certain
value. The following example code performs the parallel poll and
compares the response to hex 10, which corresponds to DIO5. If that bit is
set, the ist of the device is 1.
ibrpp(dev, &ppr);
if (ppr & 0x10) printf("ist = 1\n");
3.
Unconfigure the device for parallel polling with ibppc. Notice that any
value having the parallel poll disable bit set (bit 4) in the bit pattern
disables the configuration, so you can use any value between hex 70 and
7E.
ibppc(dev, 0x70);
NI-488.2M SRM for OS/2
6-12
© National Instruments Corp.
Chapter 6

Advertisement

Table of Contents
loading

Table of Contents