05-12-2010 09:42 AM
I have a device that takes byte by byte string command and I'm using the attched file to do this but somehow seems not to work. If I send X66\r, I'm only getting X & 6 back.
Note that sending the same command via hyperterminal works just fine. So what is the best way to do this method using LabVIEW?
Thanks!!!
05-12-2010 09:45 AM
05-12-2010 10:03 AM
Do you want to send one byte at a time like your subject says or read one byte at a time like your code shows?
Why are you using the bytes at port and VISA read the way you are?
You might be expecting 3 bytes back, but if there are only two bytes at port at the instant that function is read, then the while loop only runs 2 times, and you only read 2 bytes in total.
05-12-2010 11:10 AM
Oppps... the attached code was misleading...
Just got an update from our software engineer and what we want is to send the string one at a time.. so how do I set it in that manner.
Thanks!!
05-12-2010 02:17 PM
Example in this thread works for me...
Thanks a lot!!!