Stop While and again START

Hi!
Its very nice. Plz give me the solution for the following problem --
Plz find the attached vi ( 1. main 2. Mouse over is sub vi of "main")
I want to make controls on my front panel mouse sensitive. I have one vi (Mouse over) which full fill my requirement. But when i call it as sub vi i will get mouse sensitivity only once. i.e when i call sub vi for the first time i will have no problem,  but when i came back to main vi and again enter to sub vi i lost control. vi gets hanged.
When i analyse this, i concluded that its problem of while loop switching. When i stop sub vi, while loop gets stoped, but when i call back again subvi, that while loop doesnt restart  again.
SO tell me how to restart while loop in program once it is stopped. Give me the solution.
Thanks
Kaustubh
VC (Pune)
INDIA
Attachments:
main.zip ‏20 KB

Hi Kaustubh_vc,
i´ve modified your attached SubVI . You have
to unregister your user events in SubVI so if you call your vi secondly
your user event is new registered and afterward unregistered.
Hope it helps
Attachments:
main_changed.zip ‏15 KB

Similar Messages

Maybe you are looking for