I'm using Visual C++ with gpib-32.dll version 1.40.7649 and using code similar to the code in the sample "non-cic.c". I'm finding that when it goes into listener mode, it reads just fine, but then stays in listener mode, doing the ibrd every time. Since there's nothing to read, it times out every time. Same thing for the TALKING mode. If the controller sends a read, the loop goes into the talking mode and I send the info. However, from that point on, the ibsta variable stays with the same value, so I always go though the talking part of the code. On the controller side, I'm using the "Send" command with DABend in the last parameter.
Is this proper be
havior? How can I put the program back into the original DEFAULT mode after completing the read or write?