I have a strange problem. I am using GPIB write to control a attenuator. Sometimes, when I send commands too quickly, GPIB write has error message, and then after that I've got to physically switch off the attenuator in order to communicate with this machine. I have tried GPIB clear and 488.2 device clear. They all don't work.
The error message is GPIB write.vi time out. I have tried to use NI explore to talk to the machine, it doen't seem the communication can go through. I believe if that happens, there is nothing software can do about it. Pls correct me if I am wrong.
Thank all of you guys very very much for trying to help me out. 🙂
If a GPIB write times out it means either you are sending a lot of data, and it takes too long to transmit it all, or the GPIB handshake failed/took too long. It sounds like you are experiencing the second case. Your device is probably getting confused when you send it data too quickly, and it messes up the handshake. Once the handshake is messed up you won't be able to send anything else to your device. That is why sending GPIB Clear does not fix the problem. Unfortunately turning your device on and off is probably the only solution.