Instrument Control (GPIB, Serial, VISA, IVI)

cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

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
Mensagem 1 de 6
5.634Exibições

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
Mensagem 2 de 6
5.596Exibições

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

0 Kudos
Mensagem 3 de 6
5.594Exibições

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
Mensagem 4 de 6
5.576Exibições

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
Mensagem 5 de 6
5.565Exibições

Can I see your code?

I need more information before I can answer the question.

0 Kudos
Mensagem 6 de 6
3.992Exibições