03-22-2010 05:29 PM
I am working on a somewhat complex control system application, in a Host/RT setup. Both the host and RT are currently state machines, which is nice for them being nice causal loops, but lousy for trying to control multiple pieces of hardware at once.
I don’t have time to redo the whole setup of the system (we have something like 400 vi’s in our application currently). What I would like to do is add a parallel loop into the RT which can control some of the non critical systems independent of what the main loop is doing.
Is it possible to have multiple TCP connections open on the same network card? I would think you just connect to a different port. Is there a possibility for bad behavior if you’re running like this?
Solved! Go to Solution.
03-23-2010 08:43 AM
Yes, no problem, just as you said, generate a different port for each unique connection.
03-23-2010 09:35 AM
I thought so, just wanted to check and see what other people had doen with apps like that.
Thank you
03-24-2010 10:48 AM
03-24-2010 11:11 AM
Good point, I would suggest using the 'Immediate' Mode in the TCPIP Read function which will return directly with
any received bytes in the buffer.
03-24-2010 12:24 PM
Good call. I figgured that one out the first time I tried it, seemed so eay, a bit to easy.
Nice thing about our process is that there is really only one state where I have time cirtical opperations occouring in the main loop and so I just throw the secondary loop into a holding state where it uses minimal resources and dosnt access the TCP functions.