Jim Kring Posted May 26, 2003 Report Share Posted May 26, 2003 There are a couple uses that I can think of off-hand: Synchronously + Call-By-Reference This would be just like how you would call a subVI, except that you want its UI to be sub-paneled. In this instance we would (1) sub-panel the VI, (2) Call the VI by reference, and then (3) un sub-panel the VI. You can even make the plug-ins flexible by using variant data in and variant data out. Asynchronous + Data Messaging This would be more like how you would interact with an ActiveX control. You would sub-panel the VI, which is executing asynchronously. It has its own process (while loop) and it executes continuously until it receives a "shut-down" message. You would message data into it and out of it using queues, notifiers, or some other means. This allows you to effectively create controls with code behind them. :arrow: I have attached an example of the 1st use case (Synchronously + Call-By-Reference). Any other ideas? Download File:post-15-1073110083.zip Quote Link to comment
Jim Kring Posted May 29, 2003 Author Report Share Posted May 29, 2003 Here is a revised example that closes VI FP Prior to subpanelling the plugins. If you want to re-open them afterwards, you could do that, too. Too bad you can't check if the diagram is open and reopen it after subpanelling. I'd love that VI Server feature :wink: -Jim Download File:post-15-1073110109.zip Quote Link to comment
Michael Aivaliotis Posted May 29, 2003 Report Share Posted May 29, 2003 Here is a revised example that closes VI FP Prior to subpanelling the plugins.-Jim Ya but if the subpanel is closed already, it generates an error. I guess i should turn off that pesky internal autoerror dialog... Quote Link to comment
Jim Kring Posted May 29, 2003 Author Report Share Posted May 29, 2003 Here is a revised example that closes VI FP Prior to subpanelling the plugins.-Jim Ya but if the subpanel is closed already, it generates an error. I guess i should turn off that pesky internal autoerror dialog... Automatic error handling isn't for "application programming", it is for "express node configuring". Now turn it off, already, before people start making fun at you 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.