From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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
0 Kudos
Message 1 of 8
(2,849 Views)
Hi Kaustubh_vc,

i´ve modified your attached SubVI Smiley Happy. 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

 
Message 2 of 8
(2,845 Views)
Hi Indiana!
Plz send me the attachment again! I was not able to open it. Its giving me error.
 
Kaustubh
VC (Pune)
INDIA
0 Kudos
Message 3 of 8
(2,841 Views)
Hi, Kaustubh_vc,

maybe you have LV 7.0 Smiley Wink

Hope it helps
0 Kudos
Message 4 of 8
(2,838 Views)

Hi!

Thanks!

I have Lab View 7.1.

Kaustubh

VC (Pune)

INDIA

LV 7.1, DSC on WIN XP

0 Kudos
Message 5 of 8
(2,830 Views)
hey Kaustubh,
My name is Sarang Jaiswal. Even I am working on LabVIEW 7.1 . I have downloaded "restart_while_loop.7z" file but i am unable to open it. please HELP
 
Thank You,
--
Regards,
Sarang Dhananjay Jaiswal
Satyam Development Center, Banglore, INDIA
0 Kudos
Message 6 of 8
(2,819 Views)

Hi Sarang!

See the vi given by INDIANA - main modified.zip.

Its good working.

Give me your mail ID.

Thanks

Kaustubh

VC (Pune)

INDIA

0 Kudos
Message 7 of 8
(2,798 Views)

hey kustubh,

My email id is sarangjaiswal@gmail.com

--
Regards,
Sarang Dhananjay Jaiswal
Satyam Development Center, Banglore, INDIA
0 Kudos
Message 8 of 8
(2,777 Views)