LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subvi popup ( popup running continously while minimized or disappear)

Hi ppl, need help

 

I have an application which involves a lot of subvis and all need to be opened once set them to run, minimize or just disappear and give back control to main vi.

problems are:

 

1) since there are many subvis and all needed to be running , the laptop screen  fills up and so , if minimized to taskbar it still is a problem to navigate with lots of subvis running, so, can the subvis be made like this-- pop-up when i click button on the main vi and then run/stop  my sub vi manually and press button to disappear while it is still running in the background, If i wish to see it again It should be able to popup again when i press the same ok button on main vi.

 

Please see attached, just simple vis

 

the number on the main vi front panel should be still running after once i start the subvi and make it disappear

 

i tried with the suspend when called on subvi node setup, when i try to close the window, control is returned to main vi  but it stops running and then exits.

 

anyway around this plzz

 

thanks

Download All
0 Kudos
Message 1 of 7
(5,110 Views)

Sounds like you want the main program to control the appearance of the subVI, is that correct?

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 2 of 7
(5,108 Views)

if the subvi still runs while invisible and i am able to pop it up back again by the main vi , it should do for me,

 

thanks

0 Kudos
Message 3 of 7
(5,106 Views)

Here's a code snippet that should give you a good start.

 

The key is to get a reference to the subVI you want to minimize/maximize, and then use an invoke node to minimize/maximize it.

 

 

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 4 of 7
(5,104 Views)

it is just minimizing it on the screen , still cannot make it invisible and appear by the main vi

i also tried to use the FP.state hidden property node but i am still lost.

0 Kudos
Message 5 of 7
(5,087 Views)

Hi freemason,

 

Try this Invoke Node:

 

Message Edited by Smooter on 02-18-2009 03:52 PM
0 Kudos
Message 6 of 7
(5,042 Views)

This is part of the answer. The key thing to remember is that there is a difference between a front panel being open and one being visible. Using method in Smooter's code pass the enumerated value Hidden to the State terminal. This will open the front panel so the VI will continue running and stay resident in memory, but it will not be visible. The Activate input (if set to TRUE) simply makes the open windows foremost.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 7 of 7
(5,028 Views)