LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front Panels Reordering

I have an executable consisting of a VI with an interactive Front Panel, which then calls a subVI that also has an interactive front panel.  In the middle of running the subVI, sometimes the top level front panel will just pop up, leaving the subVI running in the background.  There is no control over the top level VI which is now the active window.  I've seen this happen when your Front Panel windows are not lined up quite right and you mouse click in the top level by accident, but that does not appear to be the case here.  Any thoughts?  I've considered the possibility of an error occuring in the top level in a parallel loop, but I would expect some form of popup (generated by my code or by the LVRT engine). 
0 Kudos
Message 1 of 5
(3,517 Views)

Have you tried to set the "window behavior" to modal in VI properties.. window appearance?

 

Also, be sure that the option "close afterwards if originally closed" is checked.

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 5
(3,512 Views)

1k more words...

 

window options.PNG

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 3 of 5
(3,510 Views)
I can't use the modal option because my subvi calls subvi's with front panels itself, which would then not work correctly.  I'm embarassed to admit this, but I've been programming in LV for about 6 years and never used the modal option before... thanks for showing me that it's there.
0 Kudos
Message 4 of 5
(3,490 Views)

Hi,

 

You should be able to set the VI properties of each subVI indiviudally--so that if you didn't want a subVI's front panel to open you could uncheck "show front panel when loaded" for those subVI's that you didn't want launching their front panels.  Also, could you be a bit more specific about 'would not work correctly'--what are you expecting the subVI's/main VI's to do?

 

Regards, 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 5 of 5
(3,460 Views)