LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

new window and button

What is the best way to open a new window after press a button?
 
Here is what I have tried to do.
 
Tks
 
Fernando
Download All
0 Kudos
Message 1 of 9
(3,336 Views)
Go to the VI properties of the subVI.  Window Appearance.  Customize Button.  Select Show Front Panel When Called.
0 Kudos
Message 2 of 9
(3,328 Views)
Thank you very much Raven you helped me a lot
 
Now if I want back to the menu. What I have to do?
 
Tks
0 Kudos
Message 3 of 9
(3,317 Views)

what I want to do is...click on button and close the prog.vi.

 

 

0 Kudos
Message 4 of 9
(3,315 Views)

Well, you don't have a button on the subVI to click on so the first thing to do might be to actually add one there.Smiley Wink

Put a while loop in the subVI and wire the Boolean to the termintaion terminal. This is extremely basic stuff (and also covered in the shipping examples). You should spend some time with the tutorials available at http://www.ni.com/academic/lv_training/how_learn_lv.htm

0 Kudos
Message 5 of 9
(3,308 Views)
I did what you suggest but it did not work.
 
Take a look on it
 
 
Download All
0 Kudos
Message 6 of 9
(3,302 Views)
In the subVI's properties, you also want to 'Close afterwards if originally closed' and you don't want 'Show front panel when loaded selected'.
0 Kudos
Message 7 of 9
(3,288 Views)
which is the best way to close a sub vi? use what you explained or use FP close?
 
Tks
0 Kudos
Message 8 of 9
(3,266 Views)
That depends. In your case, where you want a simple popup, I don't see any reason to use the property.
0 Kudos
Message 9 of 9
(3,261 Views)