ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading in Server

Hello,

My project is designing a server using TCP in LabVIEW to write a command to the client which is an Android mobile application and then reads a command from it.

But I have a problem with the LabVIEW where it writes the string "Hello Hi" that I send it to the client but it is not reading anything from the client!

I have checked the client part and it is writing but the server is not reading anything from it.

So, I am not sure what I am doing wrong in the server part. It is attached below.

0 Kudos
Message 1 of 6
(4,123 Views)

Will adding a small delay between write and read helps solve the problem?

0 Kudos
Message 2 of 6
(4,088 Views)

I tried adding a delay, it is still not working..

0 Kudos
Message 3 of 6
(4,085 Views)
0 Kudos
Message 4 of 6
(4,079 Views)

You have to tell the TCP Read how many bytes to read.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(4,066 Views)

I have tried setting it to 1 byte or 16 bytes, it is still not working..

Can I change the indicator to something else instead?

0 Kudos
Message 6 of 6
(4,055 Views)