LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tcp/ip timeout problem- client/server

Hi MSD100,

can you maybe attach a picture of your vi's? Currently i have only LV8.5.

 

Did you try this example http://forums.ni.com/t5/LabVIEW/tcp-ip-timeout-problem-client-server/m-p/1413074#M548288?

This example can be stopped without a connection. Can you please explain why this isn't working for you?

 

Try to help

Mike

0 Kudos
Message 21 of 25
(1,074 Views)

hi mike !

i have tried your suggestion...but there must be something missing on my side...

I am attaching for 8.5 version.

can you see it?

Download All
0 Kudos
Message 22 of 25
(1,065 Views)

Hi MSD100,

yes thanks, i got it.

 

The reason it doesn't work for you was, that the refnum you want to close was connected after the "TCP Wait on Listener". Because of the data flow the "TCP Close" function could not run.

 

See the attached example, it should work for you.

 

Mike

Message 23 of 25
(1,063 Views)

I forgot to attached the revised version.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 24 of 25
(1,045 Views)

Here is a mdified version that allows for bidirectional communication between the client and the server. In addition, the server will remain running and accepting new connections after a client disconnects.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 25 of 25
(1,015 Views)