04-30-2007 11:46 AM
05-01-2007 10:16 AM
05-01-2007 01:40 PM

05-01-2007 01:57 PM - edited 05-01-2007 01:57 PM

Message Edited by smercurio_fc on 05-01-2007 01:57 PM
05-01-2007 02:10 PM
05-01-2007 02:27 PM - edited 05-01-2007 02:27 PM

Message Edited by smercurio_fc on 05-01-2007 02:28 PM
05-01-2007 02:30 PM
05-01-2007 02:48 PM
I think you are wrong, most likely will the VISA function time out if no bytes are ready!
@smercurio_fc wrote:
One note about the example I provided: There's no delay in the loop so it runs as fast as possible, which means it will hog all the CPU. In your actual application you will want to put a small delay so that the computer has the opportunity to do other things it needs to do.
05-01-2007 02:51 PM
Andeh,
I also hope you are appending some sort of start or stop character at the begining or end of the two bytes. If you don't, you're going to have some problems. Without it, you won't know if the first and second bytes read are the low or high order bytes sent.
05-01-2007 02:58 PM