03-16-2017 02:00 AM
Hi,
I am implementing a software control to a GPIB instrument using a loop to poll on the response data. In the Measurement Studio, I have set the GPIB I/O timeout to 10 seconds. But, at the real test, the timeout only measures about 2-3 seconds. (I was using the NI Spy to capture the function call).
I want to ask if anyone had similar situation and I want to ask why the GPIB I/O timeout setting does not seem work?!
Thanks.
Peggy
03-17-2017 01:16 PM
Hi PeggyC,
Can you run a simple GPIB example, change the timeout settings, and see if you see a similar behavior? This will help determining if there's any code related issues.
Angela L.
03-17-2017 01:18 PM
Also, which GPIB instrument are you trying to communicate with?
03-20-2017 09:51 PM
It is a pedestal controller that I am trying to control. This is an existing code that I am running and just recently I had issue in the VISA read timeout that it seems taking the pedestal longer time in responding back. So, it is suspect that there might be instrument issue.
Anyhow, as a sanity check, I used the NI Spy to capture the VISA communication, and that is when I found out that, even though I had the GPIB I/O timeout set to 10sec, the VISA Read returns back error 0xBFFF0015 about every 3 seconds only.
So, that is a mismatch that I am don't know how to explain.
Peggy
03-21-2017 11:46 AM
That is really interesting. Since you mention that it might be an issue with the instrument, have you tried GPIB communication with another device and see if the timeout setting works?
07-06-2020 09:04 AM
Can I see your code?
I need more information before I can answer the question.