You need to be careful which flags you set when flushing the transmit and receive buffers. Some of them will discard any data present, which really isn't what you want. This is unfortunately another case where the LV help is completely useless as it is self-contradictory.
I'm at the moment not sure whether 16 or 32 is the correct flas combination. Try them both just to be sure. Oh, and one flush is enough. Two is just overkill.
Hope this helps
Shane.
Ps what happens if you send a third command after the second fails? It might boil down to a termination character problem.
Message Edited by shoneill on 05-13-2005 11:41 AM
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)