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