I'm new to gpib programming and the various forum threads on this topic haven't helped me. If I understand correctly, If I have serial autopolling set then I can wait on RQS otherwise I can wait on SRQI. I've written a short test that prints ibsta, iberr, and ibcnt after each gpib command. Regardless of how I set IbaAUTOPOLL, ibsta after ibwait reports TIMO. I'd appreciate any hints on what I don't understand. This was done on very old Solar is 8 OS/Sun hardware using NI SBUS card and drivers; this code correctly reads a resistor from an Agilent dmm.
When enabled I see:
ibsta = 0x4100 < TIMO CMPL >
iberr = 0 EDVR <DOS Error>
ibcnt = 5
When disabled I see:
ibsta = 0x4128 < TIMO CMPL CIC TACS >
iberr = 768 <UNKNOWN>
ibcnt = 15319040
I've included the source of my test case(renamed dotc cause .c wouldnt attach) and both runs as attachements. I'd really appreciate any clue on what's wrong. (so stuck)
TIA
gary