I am having issues with my GPIB device timing out (Error 6) at random intervals, mostly when I am doing intense GPIB communication in loops. As a test, what I have done is read the status of the GPIB device in an infinite loop with no wait timer. I do a write, then I do a read, and output the status to an indicator. It works fine for sometimes 30 seconds+ until it dies with the GPIB status bits flagged differently as follows:
14 16384 TIMO Timeout
15 -32768 ERR Error Detected
Doing GPIB I/O with this device always works fine until I start sending it commands with less than 1/10th of a second wait in between reads and writes. Is my device simply fouled up from sending it so many commands, or is there something I can do in the software to avoid
such an issue? I'd rather not have to manually pause between every read/write, because it slows my app down and may not be always necissary.
my timeout is set to 10 seconds on the gpib read. Any suggestions appreciated. thanks