02-22-2009 08:56 PM
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?
Solved! Go to Solution.
02-22-2009 10:06 PM
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...
02-22-2009 10:06 PM
02-23-2009 01:12 AM
Hi friends
I am Joseph from Londob. Thanks for the information.
Joseph