LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pop-up button close open

Hello,
 
I'm trying to close a vi that pop-up. The VI has main function to set shared variables. I can open de VI but I can't close it.
 
I've attached a event when button 'ok' is value changed that he wil quit (quit symbol) But he doesn't work, and i can't see that the button is responding in both way's (mechanical action).
 
So now is my question... How can I close a pop-up vi??
 
0 Kudos
Message 1 of 4
(2,810 Views)
Save the two attached VIs to the same directory and open run the MainVI.
 
The SubVI will open when you click the Open SubVI button and can be closed by either clicking the OK button or just by using the Windows "X" button on the upper right of the window. In the VI Properties of the SubVI in the Window Apperance section, the Front panel is set to to Open when Called and Close when stopped.
 
Look the VIs over and let us know of you have specific question about how they are working.
 
Ed

Message Edited by Ed Dickens on 02-22-2007 08:34 AM



Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Download All
0 Kudos
Message 2 of 4
(2,805 Views)
I down loaded the attached VIs but I don't see how to change which subvi is being opened.  Thanks for the help. 
0 Kudos
Message 3 of 4
(2,627 Views)

Hello ByMarce,

 

Thank you for your forum post. Please open the sub VI and open the VI properties from the file menu. You will be able to select Window appearance in the category pull down menu.Here you can customize the appearance of the sub vi.

The example is with one sub VI. You can add a new button on the front panel and add a event case (right click on event case) . You can select your new button in the event sources and select value change. You can put the new sub vi in this case.

 

I hope this answers your question,

Best regards,

Martijn

 

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 4 of 4
(2,605 Views)