04-24-2012 12:24 PM
Hello,
I'm having a problem using the SubVI "TCP Listen.vi".
I need to connect my client to the server (which has the Sub VI in question) however I can't stop the app that is running in the server just to wait for the client to connect, the client needs to connect to the server at any time without delaying or stopping it.
I'm attaching two VIs, to exemplify what I'm saying.
The first (main) one is called "testing", which has the other SubVI "Aguardar Cliente" (waiting client in portuguese).
What I want to do is to click "Connect" without stopping the Random Number Generator.
Does anyone knows how to do it?
Solved! Go to Solution.
04-24-2012 01:11 PM
You will need a parallel task that waits for a client to connect. Once connected if you need to process that connection and wait for other connections you will need to spawn a handler task. Look for Calling Dynamic VIs in the example to see how you can accomplish this.
04-24-2012 01:43 PM
Thank you Mark!
That dynamic VI calling is exactly what I needed!
If I could I would give you 100 Kudos! Haha
Thank you again,
Matt.
08-24-2012 07:11 AM
Hi Mark,
I'm also facing the same problem when I use the tcp listen vi in my rt application, can u pls tell me exactly how u solved the problem and where to find the dynamic VIs.
Thanks,
Vishwas