LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Showing a dynamic vi from a modal window

I have a modal window from which I want to start a dynamic vi and open/close the front panel. The dynamic vi is set to float. The dynamic vi front panel does not show up. If I change the calling vi to not-modal, it works fine. Is there some settings to make this work?

Bill F
0 Kudos
Message 1 of 4
(3,096 Views)
Try opening a reference to the vi. Under the property front panel there is a property named "is frontmost" You might be able to manipulate your modal vi using this property. If you set it to false programmatically when you call your dynamic vi you might be able to solve your problem. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 4
(3,096 Views)
> I have a modal window from which I want to start a dynamic vi and
> open/close the front panel. The dynamic vi is set to float. The
> dynamic vi front panel does not show up. If I change the calling vi
> to not-modal, it works fine. Is there some settings to make this
> work?
>

The problem is that by default floating window like palettes hide
whenever a modal window opens. There are exceptions. Popups like
right-clicks and tip strips will open and stay open even when a modal
window is up. And the help window is set to be a floater that stays
open even when a modal window is up. But by default, the OS and
windowing systems expect floaters to get out of the way and not block a
modal window.

Greg McKaskle
0 Kudos
Message 3 of 4
(3,096 Views)
This might get you the behavior you're looking for. Try setting the dynamic
VI to be a floater, but uncheck the box that says "Hide when LabVIEW is not
active". This will also keep your floater window from hiding when a modal
LabVIEW window is up.

A few caveats, however... First of all, the modal window will still be
modal and will therefore block any interaction with the floater window, so
this might keep it from being useful to you. Second, floater VIs do not
float on top of modal windows. If they did, it would be too easy to get
yourself into a situation where your floater obscured your modal window and,
because it's modal, there'd be no way to dismiss it and you'd essentially be
deadlocked and have to kill LabVIEW. Finally, floater behavio
r varies a bit
between platforms, so be sure to test on the platforms on which you're
deploying this application because it might not behave exactly the same way.


Best of luck,
Robbie

> > I have a modal window from which I want to start a dynamic vi and
> > open/close the front panel. The dynamic vi is set to float. The
> > dynamic vi front panel does not show up. If I change the calling vi
> > to not-modal, it works fine. Is there some settings to make this
> > work?
> >
>
> The problem is that by default floating window like palettes hide
> whenever a modal window opens. There are exceptions. Popups like
> right-clicks and tip strips will open and stay open even when a modal
> window is up. And the help window is set to be a floater that stays
> open even when a modal window is up. But by default, the OS and
> windowing systems expect floaters to get out of the way and not block a
> modal window.
>
> Greg McKaskle
>
0 Kudos
Message 4 of 4
(3,096 Views)