Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Showing and closing Front Panels

Showing and closing Front Panels

Showing and closing Front Panels

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?

RE: Showing and closing Front Panels

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.

RE: Showing and closing Front Panels

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close