Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending equipmentclear message cause device froze and GPIB bus lockup.

During automation test, I tried to clear the device after each test case using cwvisa.clear method. Recently, I found the device locks up, and the whole GPIB bus freezes too. (not able to talk to other equipment either, after the device locked) I have to power cycle the locked device to resolve the problem. This problem happens intermittently, and is very annoying during the automation. What should I do to solve it? Do I need to add delays before send the commands?
0 Kudos
Message 1 of 2
(3,089 Views)
Hi May,

It is hard to say what could be causing the problem. I would suggest you check in NI-SPY to see if you can track down the source of the error. Look for a single command or string of commands that might be the causing this problem. It may be that you are getting the instrument into some unexpected state and it is locking up the bus.

Best Regards,
Aaron K.
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,089 Views)