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?