LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call another VI from a button in main VI?

Hi,

 

I want to put some buttons on FP of my main VI, by clicking on that button, i want that it opens 2nd VI.

 

And in 2nd VI, there is one button,by clicking it, I want to reach to main VI.

 

Can anyone guide me?

 

Thanx,

Vaibhav Gandhi
,
B.E. Instrumentation & Control,
INDIA
0 Kudos
Message 1 of 7
(6,943 Views)

Vaibhav,

 

This question has been posted several time in the forum.. Please please please search before posting.

How ever here it is...

 

1)Hit CTRL+I to luanch the VI properties

2) Select the "Window appearence" from the "Category" listbox

3)Click the Customize button and place the checkmarks as shown in the fig below

 

original.gif

 

So when these changes are made save these changes for the subvi.

 

Now click the deired button in the main vi so that the subvi launches. When the stop or quit button (what ever button that will close this sub vi) is hot in the subvi, you can navigate back to the Main vi..

 

Guru 

Regards
Guru (CLA)
0 Kudos
Message 2 of 7
(6,926 Views)

Hi,

 

For your main vi, create a event case that would wait for the click from the user.  When the user click, the program will execute the subvi.  For the subvi, you need to go to its vi proporties and set it up, so that it will open when it is executed.  In the subvi, you need another event case that would wait for the user input.  When the user generate the click, the program will continue and go back to the main vi.

 

Yik

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 7
(6,923 Views)

I also want to use such buttons. I am new to labview, so please explain me detailed. For my project, in the main page, I want six buttons and by clicking each button will direct to the respective VI. Want to know how to link VI and button, I need detailed explanation please.

Best regards.

0 Kudos
Message 4 of 7
(6,324 Views)

First, work though the on-line tutorials on getting started with LV. They will help you with many of the basic questions.

 

Next, read the help files on the event structure. This will be a component you will use, so learn about it before you get started.  There are some examples with LV.

 

After that, if you have other, specific questions, come back here and ask.  Post the VI you have tried along with explanations of what you want it to do and what it is not doing. The more explicit you are with your documentation and questions, the higher the probability you will get an appropriate answer.

 

Lynn

0 Kudos
Message 5 of 7
(6,308 Views)

Helo All...

           Can I able to call a subvi on a button click ,that is in non exicution mode.

 

Thanks.....

0 Kudos
Message 6 of 7
(5,389 Views)

I mean the called subvi should be in non-exicution mode.

0 Kudos
Message 7 of 7
(5,388 Views)