06-03-2011 01:37 AM
Hello,
I have a main vi with an event structure. In this you can hit the button start and a sub vi is executing. This sub vi is opened by reference, because I display some values on the main vi frontpanel.
Normally the sub vi runs, work and ends automatically and then I can hit the next button on the frontpanel of the main vi.
Now I want to stop the sub vi with a stop button (on the frontpanel of the main vi), but the sub vi is still running and the frontpanel of the main vi reacts only if the sub vi is finished.
How can I solve it?
Regards Schwede
06-03-2011 03:52 AM
Hi schwede,
Now create a stop button on the front panle of main vi and assign an event for that stop button.After that create a global variable with name "global stop" and in that event assign true to that global.Now in that subvi you have to poll that global stop and when the stop button is pressed from main vi,both the vis will be stopped.
Please post your vi for detailed explanation.
Thanks and regards,
srikrishnaNF