02-18-2009 04:29 AM
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
02-18-2009 04:45 AM
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
02-18-2009 05:39 AM - edited 02-18-2009 05:40 AM