LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a tcp server in loop

Hello everybody!
I just want to know how to make a server keeping turning even when the client has deconnected.
My work is based on examples TCP Communicator - Active.vi and TCP Communicator - Passive.vi.
The problem with these VIs is that when the client deconnects, the server doesn't work any longer, and I want the server to be able to listen for other clients (one client in the same time).
How can I modify them to apply my will? If you have some examples it will be perfect!!

Thank you!

SebGAM
0 Kudos
Message 1 of 2
(2,770 Views)
You could probably get away with putting a big While loop around the server code, but there is always the greatest TCP server example I have ever seen. It lives over at OpenG, the Open Source LabVIEW community. You can download and use it for free. There's even decent documentation right there online.

EXAMPLE - TCP Server at OpenG

Beware, the code is not easily understood by the novice LabVIEW programmer. All you need to know is that you should only modify the VI called "TCP Server Example.vi" and "TCP Server Example Connection Handler VI.vi".

Enjoy,

Daniel L. Press
PrimeTest Corp.
www.primetest.com
Message 2 of 2
(2,759 Views)