Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing and closing Front Panels

Status
Not open for further replies.

AFloriani

Industrial
Jun 16, 2005
14
Another LabView 7.1 question:

I want to know how to show and close the Front Panel of a SubVI. I've found in examples and help that in order to show the Front Panel of a SubVI I have to configure "SubVI Node Setup". I've configured it to "Show when called" and "Close afterwards if originally closed".

I would like to have two buttons OK and Cancel. When the user press cancel it simply closes the Front Panel and go back to the Main Front Panel. When the user press OK it process some data and then close and go back.

Up to now I have tried creating some structures but it has not worked. Right now I only have an event structure for the OK button in the block diagram and no cancel button, because I don't know how to close the Front Panel (it won't close when the block diagram finishes executing).

Any suggestions on how to make what I need?
 
Replies continue below

Recommended for you

It should close when configured as you described. Maybe you need to add the cancel button to the event structure to pass out to the outside while loop stop sign. This will terminate subvi execution, should close the front panel, and return back to the calling vi.

Wheels within wheels / In a spiral array
A pattern so grand / And complex
Time after time / We lose sight of the way
Our causes can't see / Their effects.

 
Thanks for your help. This SubVI I'm doing is supposed to be a configuration dialog, so I solved the problem by creating one event structures for the two buttons (OK and Cancel). In the OK button event I do the processing, in the Cancel event I don't do anything, and as it is only one event structure and it is not inside a loop, once executed the SubVI will exit and close it's front panel.
I guess it was not closing before because the program flow structures I was using.
Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor