LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I make a non modal SubVI always visible

I need to interact(mouse/keyboard) with objects in the mainVI front panel
while observing objects in a subVI. Obviously I can't make the subVI modal
'cos I wouldn't be able to alter the main VI controls, but if I make the
subVI non-modal it disappears as soon as I click on the mainVI.

Help!..........

Nick
0 Kudos
Message 1 of 5
(3,279 Views)
One option is to run both vi's in paralell, in different loops, and arrange the screen to see both front panels at a time.
Good luck
0 Kudos
Message 2 of 5
(3,279 Views)
Nick Ford wrote:
>
> I need to interact(mouse/keyboard) with objects in the mainVI front panel
> while observing objects in a subVI. Obviously I can't make the subVI modal
> 'cos I wouldn't be able to alter the main VI controls, but if I make the
> subVI non-modal it disappears as soon as I click on the mainVI.
>
> Help!..........
>
> Nick

Hi Nick,

try to use the VIs of the palette "Application Control". In particular
use
"Open VI Reference.vi" connect it with a "Property Node" and set the
property
"Front Panel.IsFrontmost" to true, then the frontpanel of your subVI is
always visible.

regards

Guenter
0 Kudos
Message 3 of 5
(3,279 Views)
I did notice the IsFrontmost property, but I assumed it was just another way
of saying modal. But if not, I'll try it and see ...

Thanks

Nick


Günter Hofmann wrote in message
news:3B4AB6E4.C50B4B65@iis.fhg.de...
> Nick Ford wrote:
> >
> > I need to interact(mouse/keyboard) with objects in the mainVI front
panel
> > while observing objects in a subVI. Obviously I can't make the subVI
modal
> > 'cos I wouldn't be able to alter the main VI controls, but if I make the
> > subVI non-modal it disappears as soon as I click on the mainVI.
> >
> > Help!..........
> >
> > Nick
>
> Hi Nick,
>
> try to use the VIs of the palette "Application Control". In particular
> use
> "Open VI Reference.vi" connect it with a "Property Node" and set the
> property
> "
Front Panel.IsFrontmost" to true, then the frontpanel of your subVI is
> always visible.
>
> regards
>
> Guenter
0 Kudos
Message 5 of 5
(3,279 Views)
I have attached an example of how you can open subVI windows without hiding the main VI. Open the VI, click on either button and they will launch different subVIs. Click back on the main VI to restore it's view. You can have them run in parallel.

One of the few things that you need to watch out is that when you press the exit button from the main VI, it won't stop until all your other subVIs have finished running. And there are ways around that also.

I hope that helps.

Shan Pin Koh
0 Kudos
Message 4 of 5
(3,279 Views)