LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tcp - bytes to read

Hi,
 
I have a TCP connection between 2 computers. Is there any way to read the data without specify the number of bytes to read? Because I don't know the number of bytes before.
0 Kudos
Message 1 of 2
(2,218 Views)
Hi,

I you go to "help" > "find examples" you'll find a couple of example VIs called "TCP - Communicator ..." I think you can get inspiration from these.
For instance in the TCP - Communicator - active" you can see that a constant "512" is linked to "bytes to read" and apparently if there is less dat at the specified port, only available data will be read, so you can just count the characters you received.

Hope this will help you 😉


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 2
(2,209 Views)