LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to stop a timer

hi, my requirement is like this.

  

i have a switch and an indicator (LED). when i switch on the led should blink and reset after 10sec. But before 10 sec if i off the swich and again switch it on after some time , the system should reset after the remaining time. ie if i switch on and after 4 sec if i switch off and again after some time if i switch on the system should run for 6 sec and then reset. I don want to delay or wait since while this is happening if i get a higher priority event i should handle tht as well like stop or abort. How do i achieve this.

 

 

 

Regards

Jayaraman

0 Kudos
Message 1 of 3
(2,520 Views)

Hi JayRam,

you can use an event structure. Use a normal Button event to start and stop your LED and additionally the timeout event to also stop the LED.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 3
(2,515 Views)
Message Edited by Adnan Z on 02-18-2009 03:40 PM
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 3 of 3
(2,503 Views)