Jim Kring Posted March 25, 2004 Report Share Posted March 25, 2004 This is an example of using OpenGOOP to manage TCP client connection handlers which are spawed dynamically. Essentially you register a callback VI that will be run each time a client connects to the port that you have registered for. And, if your callback is reentrant, then you can handle multiple client connections! More info and download: EXAMPLE - TCP Server page at OpenG.org Enjoy, -Jim Quote Link to comment
CraigGraham Posted March 25, 2004 Report Share Posted March 25, 2004 How long has that "prepare for reentrant execution" option been there? i.e. how long have I needlessly been messing around with VI templates? Quote Link to comment
Jim Kring Posted March 25, 2004 Author Report Share Posted March 25, 2004 The "Prepare for reentrant run" option (0x08) of "Open VI Reference" was adding in LV 6.1, as was the "Auto Dispose Ref" argument of the "VI.Run" method. But, templates are still a good solution for cloning GUIs. Quote Link to comment
Michael Aivaliotis Posted March 25, 2004 Report Share Posted March 25, 2004 How long has that "prepare for reentrant execution" option been there? i.e. how long have I needlessly been messing around with VI templates? I wouldn't say that using templates is needless. I hope NI leaves the usage of templates the way they are. I like them. One major benefit of using templates is you can debug your code while it's running. Reentrant VI's have annoying limitations. You cannot probe data on wires and you cannot view the front panel data. Quote Link to comment
Jim Kring Posted March 26, 2004 Author Report Share Posted March 26, 2004 I wouldn't say that using templates is needless. I hope NI leaves the usage of templates the way they are. I like them. One major benefit of using templates is you can debug your code while it's running. Reentrant VI's have annoying limitations. You cannot probe data on wires and you cannot view the front panel data. Has anyone benchmarked the performance difference between instanciating a VIT vs. a reentrant VI? Quote Link to comment
celluloseester Posted March 4, 2005 Report Share Posted March 4, 2005 thank you very much Quote Link to comment
David Wisti Posted January 26, 2006 Report Share Posted January 26, 2006 I tried to run this example in Labview 8.0 but ran into problems with when trying to connect with multiple clients. It seems the problem was here: This is related to a change in Labview 8.0 vi references discussed here. I replaced "Search 1D Array" with the following vi and everything seems to work fine now. Download File:post-319-1138295502.vi Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.