Search code examples
c#pythonvisagpib

What can cause a GPIB to be unresponsive


I have a GPIB device that I'm communicating with using a National Instruments USB to GPIB. the USB to GPIB works great.

I am wondering what can cause a GPIB device to be unresponsive? If I Turn off the device and turn it back on it will respond, but when I run my program it will respond at first. It then cuts off I can't even communicate with the GPIB device it just times out.

Did I fill up the buffer?

Some specifics from another questioner

I'm controlling a National Instruments GPIB card (not USB) with PyVisa. The instrument on the GPIB bus is a Newport ESP300 motion controller. During a session of several hours (all the while sending commands to and reading from the ESP300) the ESP300 will sometimes stop listening and become unresponsive. All reads time out, and not even *idn? produces a response.

Is there something I can do that is likely to clear this state? e.g. drive the IFC line?


Solution

  • Since you are using National Instruments hardware you can run NI Trace in the background to check all the commands that is send out from the Program. In the Trace do check the last command and its parameters that is send out from the program that causes the hardware to hang.

    You can download NI IO Trace here