LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop While loop

Hi
I have a while loop with a cycle time of 100 sec, when I stop it I have to wait 100 sec untill the while loop stops.
There is any manner to stop it immediatly?
Thanks
 
 
0 Kudos
Message 1 of 13
(4,083 Views)
Change the implementation, so the wait is 1 ms and the functional code is only executed every 100 ms.
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 13
(4,080 Views)
Hi
This is not clear for me...
Can you explain better?
I send my code..
0 Kudos
Message 3 of 13
(4,077 Views)

Why are you using a property node for a control that is not accessed within the loop?  And the conditional terminal is set to run if True. 

Your while loop doesn't make sense.. Can you post the entire code (attach your vi) and explain what you are trying to do?

R

Message 4 of 13
(4,063 Views)

Hi, enzo,

You can do something like this:

Andrey.

Message 5 of 13
(4,060 Views)
I`m using  aproperty node because I run more than one while loop at the same time and I want to stop them whith  only one button.
 
 
0 Kudos
Message 6 of 13
(4,053 Views)
Is this what you are looking for?


Message Edited by muks on 07-09-2008 07:46 AM
Message 7 of 13
(4,030 Views)
The while can have any delay in the above vi but it will stop the vi execution immediately the stop button is pressed.
Message 8 of 13
(4,027 Views)
No I don`t want to stop all the VI but only the while loop.
0 Kudos
Message 9 of 13
(4,013 Views)
Please post your code so that we may suggest an appropriate solution.
 
If you have multiple loops running in parallel, you may need one that has an event structure.  We'll be able to determine that after seeing your code.
 
R
Message 10 of 13
(4,009 Views)