LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timer interrupt for LED

Solved!
Go to solution

Hello guys,

 

My program has radio buttons to control blinking rate of LED. I need to put interrupt (timer) to switch off LED after 10seconds. Lets say SW0 is pressed, LED starts blinking 10 seconds and then switch off. Here I have some problems, when I press SW0 and wait 3 seconds and press SW1 and press back SW0, the LED switches off after 7 seconds. I guess the timer is not reset to count 10 seconds, but saves its previous time. 

 

Can anyone explain what I am doing wrong???

 

Thank you!

 

ABSIAS

0 Kudos
Message 1 of 3
(2,861 Views)
Solution
Accepted by topic author absias

duplicate post!

 

Please don't ask the very same question in more than one thread!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,856 Views)

But how to make sure that in every switch change, the elapsed time resets and counts 10 seconds from begginin? and if no state change during 10 seconds, the elapsed timer turns off LED. 

 

 

0 Kudos
Message 3 of 3
(2,827 Views)