LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

closing sub vi

Solved!
Go to solution

Hi,

In my main page will have 2 buttons start and close. if start i able to call the sub vi but if

i press close it must close the sub vi tht been called.

 

How to close a sub vi with when the user press close in the main page?

0 Kudos
Message 1 of 4
(3,301 Views)
Solution
Accepted by topic author jeyanthi

There's two issues. First, if the subVI is statically linked into your code the Main VI won't be able to do anything until the subVI stops. So you need to have the subVI either running independently or in a separate loop from the code that is maintaining the GUI. Second, you need some way of getting the stop action into the subVI. You have your choice of a functional global, a user event, a queue or a notifier.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 4
(3,294 Views)

Hi Jeyanthi,

 

 

Right Click on the Sub Vi inside the main program, Select Sub Vi Node Setup----->Then Select the option Show front panel when called and close afterwards if orginally closed

 

I hope this will help you.

 

Rgds,

Venky

0 Kudos
Message 3 of 4
(3,293 Views)

Hi friends

 

I am Joseph from Londob. Thanks for the information.

 

Joseph

 

0 Kudos
Message 4 of 4
(3,272 Views)