Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB Timeout Setting

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

 

0 Kudos
Message 1 of 6
(5,243 Views)

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.

0 Kudos
Message 2 of 6
(5,205 Views)

Also, which GPIB instrument are you trying to communicate with? 

0 Kudos
Message 3 of 6
(5,203 Views)

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

0 Kudos
Message 4 of 6
(5,185 Views)

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? 

0 Kudos
Message 5 of 6
(5,174 Views)

Can I see your code?

I need more information before I can answer the question.

0 Kudos
Message 6 of 6
(3,601 Views)