08-23-2011 11:12 AM
use an event structure.
Ben
08-23-2011 11:19 AM
Vladiator,
I'm glad you got it to work! Here is the example that I believe the LabVIEW 2009 Help was referring to. Hope this helps!
Mychal F
08-23-2011 11:40 AM
Got it working, thanks. Now another issue: I want to open 2 subVIs from main - they must be modeless and updated with values from the main VI. However what I see it that I am unable to open the second subVI until the first one is closed.
What do I have to do in order to open and run 2 subVIs at the same time?
08-23-2011 02:17 PM
Hello Vladiator,
Are you trying to make multiple calls to the same subVi? If so, this would likely be resulting this undesired behavior and you could resolve this by changing the VI properties under the execution specification tab and switch the execution to a reentrant type with clone preallocation.
Best,
Blayne Kettlewell
08-23-2011 02:27 PM
No, I am trying to open 2 different subVIs from one main VI using menu items. Unfortunately when one subVI is already opened and running, the second subVI is not showing when it is selected from the menu - until the first subVI is closed. So the first subVI behaves as a modal dialog (however it is not modal, but the Floating type), and that's the problem.
@Blayne K wrote:
Are you trying to make multiple calls to the same subVi? If so, this would likely be resulting this undesired behavior and you could resolve this by changing the VI properties under the execution specification tab and switch the execution to a reentrant type with clone preallocation.
08-24-2011 08:21 PM
Hi Vladiator,
After doing a little digging, it seems if you are using a callback or dll to bring up a non-modal dialog you cannot open a new window until all other processes have completed (http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/call_nonmodal/) . This most likely is creating this execution behavior you are experiencing if you are in fact using a callback implementation to force the two dialog windows open.
-Blayne Kettlewell
08-26-2011 09:08 AM
This is LabVIEW 2011 Help. Are your sure this should work for LV 2009 SP1?
08-29-2011 10:25 AM
Blayne, I do not understand this help articel. Can you clarify or provide some examples for it? Thanks!
08-29-2011 11:37 AM - edited 08-29-2011 11:37 AM
This is what the article says to do. You can do it using LV2009.
08-29-2011 11:45 AM
Thanks Ray. One more question - I will not have a static vi path since the program might be installed into a different directory. What is the way of getting a vi path at run time?