LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP decode c++

Hi steffi

i add an client/server example for you. i don´t know why you need a timeout on the TCP.read.vi because if the client close the connection, then an error will occur at the read.vi so that you can react on it. After the connection has closed by the client the server wait for a new connection.

Hope it helps.

Mike



Message Edited by MikeS81 on 02-06-2008 09:39 AM
Download All
Message 31 of 39
(1,424 Views)
Hi Mike,

thank you very much for your help! Unfortunately I only have LV 7.1, should have told you before, sorry! But I think I know what you mean and I changed it that way AND it works: ) So, for me it's perfect! Thanks a lot!

Steffi
0 Kudos
Message 32 of 39
(1,421 Views)
Ok, I think I understand your problem now. The next thing you have to do is:
 
Unbundle your Error cluster after reading TCP/IP, than compare the error code with the constant error code if client closes connection. If the comparision is true, than you have to exit the inner loop. So connect the output of comparison to the Loop Condition of the inner loop.
Message 33 of 39
(1,418 Views)

hi steffi

i´m sorry i forgot it. see my attached picture for the server.

Mike

0 Kudos
Message 34 of 39
(1,416 Views)
OFFTOP
Mike, Steffi are you germans?
0 Kudos
Message 35 of 39
(1,411 Views)
Thanks to you both it works perfect! : )

0 Kudos
Message 36 of 39
(1,409 Views)

yes i am

Mike

0 Kudos
Message 37 of 39
(1,407 Views)
Yes, I am Eugen. I know my English is bad; )
0 Kudos
Message 38 of 39
(1,405 Views)
My english is bad too. Take a look on my tutorial and forum. There you can speak german.
0 Kudos
Message 39 of 39
(1,399 Views)