09-17-2007 08:25 AM
09-17-2007 08:44 AM
You CANNOT conclude on memory optimization like this.
If you explain more of your requirement exactly, maybe somebody else expert on this can comment on memory optimization issues & so on...
If you want your MainVI to be active even after SubVI is invoked, you can do so by various means.
By simply setting the Window property to be of non-modal dialog type, you can operate on both the windows. What I mean to say is you need not close the SubVI to return to your MainVI.
09-17-2007 08:46 AM
Sorry, forgot to mention...
You ve to use Floating dialog property for the VIs' Window property settings. Then you can operate on both the VIs simultaneously.
09-18-2007 01:33 AM - edited 09-18-2007 01:33 AM
Thanks for reply
The problem is that I want not to have main VI in active state during subVI running, but operate it (main VI). At the following picture you can see an example. The question is, how to make the loop iterating without waiting for subVI?

PS Now I think, it's no possible.
Message Edited by Err on 09-18-2007 01:34 AM
09-18-2007 05:32 AM
Err wrote:
The question is, how to make the loop iterating without waiting for subVI?
Your SubVI is still running because of a loop. If you want to iterate the loop in the MainVI without waiting for the SubVI, then you should not run the SubVI [having its own loop whose termination is not controlled from the MainVI] inside a loop in the MainVI.
maybe you should consider redesigning your program flow...
09-18-2007 06:40 AM
Err,
I am not sure that I understand exactly what you are trying to do (i.e. I do not understand your comment : "The problem is that I want not to have main VI in active state during subVI running, but operate it (main VI)"). If you are looking to launch Sub-Vi from your main Vi, try using an invoke node. If you set the properties of Sub-Vi to close after completion and the properties of the invoke node to wait until complete then I believe Main Vi will suspend operation until Sub-Vi finishes.
Jim
09-18-2007 01:09 PM
09-19-2007 12:31 AM
Sam,
I tried to download the example provided in that link whiach is below.
But, it takes me to the Dev Zone page instead... ![]()
Can you just post that example here, if it is still available in NI's internal resources.
I think it ll be of much help for beginners.
09-19-2007 08:18 AM - edited 09-19-2007 08:18 AM
Message Edited by SamboNI on 09-19-2007 08:22 AM