LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling main vi front panel from sub vi front panel

Solved!
Go to solution

Hi

 

In my project I have different sub vi's i need to call from main vi.

After the completion of sub vi task i need to return back to main vi.

Give some idea.

 

i attached my project with on sub vi.

 

Regards

hari

 

 

Download All
0 Kudos
Message 1 of 3
(2,983 Views)
Solution
Accepted by topic author thinnker

Open the subvi "Booster_Test.vi",

Navigate to

 

File -> VI Properties->select "window appearence in category", -> select "custom"option,click the "customize"  button and a new window appears

 

Check  the "show front panel when called " and "close afterwards if originally close".

 

This should solve your problem.

 

 

 

Message 2 of 3
(2,975 Views)

Hi,

 

You have a event structure to handle the buttons on the front panel.  Place the subvi in the event that should be called when the user presses the button.

 

Right click on the subvi>in the right click menu select "subvi node setup">>"Open the FP when called".   This option will force labview to open the FP of a subvi.

 

In VI Properties>>Window appearance>>"show FP when called" (select this option)

In the same window you have "Window Behaviour" - select "Modal"

 

These options will keep the subvi window on the top.  only the when the subvi is closed the main window gets the control.

 

Post back if any queries.

 

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
Message 3 of 3
(2,967 Views)