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
(3,105 Views)

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

0 Kudos
Message 2 of 6
(3,070 Views)

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

0 Kudos
Message 3 of 6
(3,067 Views)

Have a deep look at this.

http://www.ni.com/tutorial/53683/en/

0 Kudos
Message 4 of 6
(3,061 Views)

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


GCentral
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
(3,048 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
(3,037 Views)