LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open and Close Front Panel of SubVI

Solved!
Go to solution

Hi all,

 

Running LabVIEW 2011 on Windows 7 x64.  I am trying to get a subVI front panel to open from my main FP with the press of a button and then close with a button press in the subVI.  Here is the piece from my main FP that calls the VI and opens the FP openclose1.JPG

Plots is defined in another loop and all of the loops are in a flat sequence.  I did it this way because I want it to start with the first press and not stop my main loop from running.  I have moved the item in the left loop around a lot so I'm not sure if I can run that in the same loop as the event or not.  Either way opening the VI seems to work fine.

 

The problem shows up when trying to close the subVI for the SECOND time.  The code is here:

openclose2.JPG

 

As I said, the first time I open and close the VI everything works as I expect it should.  I am then able to open it again but now the "blank button" doesn't function and I can't close the window or even open the block diagram to probe anything.  I have been trying to figure this out for awhile, any insite would be greatly appreciated!

 

Thanks

0 Kudos
Message 1 of 3
(4,745 Views)
Solution
Accepted by topic author trije

Found my problem, I had the wrong boolean on one of my other events.  So this seems like a good way to open/close a subVI if anyone is interested!

Message 2 of 3
(4,732 Views)

Its good that you found the bug.

 

This code may serve as a way for you to compare notes.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 3
(4,723 Views)