11-07-2014 03:43 AM
Dear Friends
I want to have a new front panel in the main front panel such that when the user clicks on a botton the new front panel appears and when he clicks on an "OK" botton it is closed.
Considering that during the opening time of the new front panel the main program is running autonomousely.
I am using Labview2014
How do I accomplish this?
Sincerely
11-07-2014 03:47 AM
11-07-2014 04:35 PM
That's called a Modal (sub)VI. Design a subVI, and when you are done, set its Window Appearance property to Dialog. Note on the page of options that Modal is selected (meaning the VI stays on top until it exits), Show FP when called is checked, and Close FP if originally closed is also checked. If you design the Front Panel of this VI correctly (for example, positioning and sizing it appropriately, see the next Property tabs), it can "hide" the calling VI's Front Panel when it pops into existence.
BS
11-09-2014 03:35 AM
Hi GerdW
1- I can not find the --> VI properties of that subVI should be "open FP when called" and "close FP after finishing"<--
I am using Labview 2014 but these properties is not avalable for me. (see the attachment)
2- Could you Please give me a simple example on parallel running loop for this problem?
11-09-2014 03:51 AM
Click on (menu item) file>>vi properties. Select "window appearance" from the dropdown and then click "customize". Put a check box next to "Show front panel when called" and "close afterward if originally closed". That will cause the subVi's front panel to be visible when it is called. Putting the subVI in a separate loop will allow the subVI to be called without causing the main program to stop and wait for the subVI to finish.
11-09-2014 04:14 AM
@Zwired1 wrote:
Click on (menu item) file>>vi properties. Select "window appearance" from the dropdown and then click "customize". Put a check box next to "Show front panel when called" and "close afterward if originally closed". That will cause the subVi's front panel to be visible when it is called. Putting the subVI in a separate loop will allow the subVI to be called without causing the main program to stop and wait for the subVI to finish.
Oh just hit Crrl+I
11-09-2014 05:20 AM
Hi Zwired1
Thanks for the information but still there are some problems:
When I check "close afterward if originally closed" and put the sub vi in a While loop the Sub vi Front panel Flickers.
11-09-2014 09:07 AM
Hi VS,
well, then you need to design your program a better way…
I want to have a new front panel in the main front panel such that when the user clicks on a botton the new front panel appears
You already discovered how to do this…
and when he clicks on an "OK" botton it is closed.
You still need that part. That "OK" button should be located on the subVI's FP and that subVI needs a loop of it's own…
11-09-2014 01:05 PM
Please check the attached image. When I press "Setting" in main VI the Sub VI appears and starts running but the main VI stops running until I press "OK" in the sub VI and it closes.
How can I chane the program such that when the sub VI starts running the main VI continue running too.
Regards
11-09-2014 01:27 PM
V.S.,
No image was attached. Please attach your VIs. It is difficult to capture images of all the settings options but the VIs carry all of those with them. It is much easier for us to determine what is happening from the actual VIs.
Lynn