LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modeless SubVI does not load

use an event structure.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 51
(1,469 Views)

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

Applications Engineer
National Instruments
0 Kudos
Message 12 of 51
(1,467 Views)

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?

0 Kudos
Message 13 of 51
(1,457 Views)

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

0 Kudos
Message 14 of 51
(1,433 Views)

@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. 

 


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.

 

0 Kudos
Message 15 of 51
(1,427 Views)

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 

0 Kudos
Message 16 of 51
(1,405 Views)

This is LabVIEW 2011 Help. Are your sure this should work for LV 2009 SP1?

0 Kudos
Message 17 of 51
(1,387 Views)

Blayne, I do not understand this help articel. Can you clarify or provide some examples for it? Thanks!

0 Kudos
Message 18 of 51
(1,367 Views)

This is what the article says to do.  You can do it using LV2009.

 

 

0 Kudos
Message 19 of 51
(1,356 Views)

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?

0 Kudos
Message 20 of 51
(1,350 Views)