LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending 1 byte at a time

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!!!

______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 1 of 5
(3,236 Views)
What do you get if you dont use a for loop?
0 Kudos
Message 2 of 5
(3,233 Views)

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.

0 Kudos
Message 3 of 5
(3,214 Views)

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!!

______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 4 of 5
(3,190 Views)

Example in this thread works for me...

 

Thanks a lot!!!

______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 5 of 5
(3,165 Views)