LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stopping wait function

Hi,

I am using a parallel loops and in some of those loops I

use a delay function.

Is it possible stopping the wait function when some button is pushed( and  when some variable changes its value)?

Thanks,

Leonid

0 Kudos
Message 1 of 6
(2,750 Views)

No.

 

Create your own delay method that only waits a small amount of time repeatedly until the full delay time has been reached, and keeps checking if it should cancel.

0 Kudos
Message 2 of 6
(2,734 Views)
You could also use a wait on notifier or wait on occurrence.
0 Kudos
Message 3 of 6
(2,730 Views)

As knights said you have lot of methods to achieve that. You could do by this way too.

 

Delay_conditional.png

 

This would wait for 100 ms but any alarm comes this will stop.

 

Good luck

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 6
(2,722 Views)

Hi,

 

      You can use event structure, while you wait (event timeout) if other event occur you can manage it.

 

Best Regards,

Luis A. Mata C.
Ing. Electrónico
Whatsapp: +58-414-1985579
BBM Pin: 2B83E99A
Thanks: Kudos
0 Kudos
Message 5 of 6
(2,706 Views)

Thanks for the replies and examples,

Leonid

 

0 Kudos
Message 6 of 6
(2,679 Views)