LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to destroy the window?

Hi,
In my attached file, I want to destroy the interface window after I click 'stop' button. That means the stop button not only stops the program but also makes the interface window disappear (just like click 'x' on the right-top of the window). How to deal with this? Thanks.
0 Kudos
Message 1 of 5
(2,515 Views)
There are two ways of implementing this, you can set the vi's property>>appearance to "close afterwards if originally closed" or you can open a reference to the vi and call the vi method "closeFP".
Hope this helps.

Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 5
(2,504 Views)
Thank. I just tried with your first suggestion but failed. Could you please modify my attached code(in my first post) a little bit to implement it?
0 Kudos
Message 3 of 5
(2,497 Views)
Try this.

Ed


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.
0 Kudos
Message 4 of 5
(2,485 Views)
Hi,

Hope this VI gives you a clue or two in your coding.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 5 of 5
(2,466 Views)