Technical Forum

LOGO!

Newbe: Timer and up/down couter question

Thread Starter: DPE83   Started: 7/5/2012 8:46 AM   Replies: 4

« Previous thread Next thread »
Page 1 of 1 (5 items)
  7/5/2012, 8:46 AM
Joined 7/5/2012
Last visit: 7/5/2012
Posts: 2
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,

Newbe question laugh

I am trying to make a function to turn an output on when an input is pressed twice within 2 seconds, and then turn the same output off after the same input is pressed another two times within two seconds.

So far, i have the up/down counter in place that counts the two input signals and a flag helps me reset the up/down counter, but i cant figure out how to implement the timer function?

Thx,

David
Top
  7/5/2012, 9:04 AM
Joined 4/22/2010
Last visit: 5/20/2013
Posts: 3190
Rating:
Rated: Excellent [4.11 out of 5 / rated 295 time(s)]. (295) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello,

Our friend Betel has a huge amount off examples, one off them is double tap

Have a look at that and see how it's done there.

If still problems attach what you have made so far (zipped)

Regards,

Marcjan

Problem solved?
Please let us know!

Please no technical questions by PM, use the forum!
Top
Thank you for this post from:
  7/5/2012, 9:34 AM
Joined 7/5/2012
Last visit: 7/5/2012
Posts: 2
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi Marcjan,

Thank you for the usefull link. I now have a working double tap button and my issue is resolved :)
Top
Thank you for this post from:
  7/5/2012, 9:39 AM
Joined 7/24/2006
Last visit: 5/16/2013
Posts: 1823
Rating:
Rated: Outstanding [3.68 out of 5 / rated 216 time(s)]. (216) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,

check this:

B011 is the specified time to press the bottom, B010 specifies how often the button has to be pressed.
B012 (AND Edge) is a pos. edge detection, B013 is a Pulse Relay.

Hope this helps

Attachment: Two_Trigger_Control.jpg  (30 Downloads)



=== Edited by Helmut_13 @ 7/5/2012 9:43 AM [GMT ] ===



Top
Thank you for this post from:
  7/5/2012, 9:40 AM
Joined 4/22/2010
Last visit: 5/20/2013
Posts: 3190
Rating:
Rated: Excellent [4.11 out of 5 / rated 295 time(s)]. (295) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Thanks go to Betel For all his usefull ExamplesRnf:lblSmileyTooltip_

Regards,

Marcjan


Problem solved?
Please let us know!

Please no technical questions by PM, use the forum!
Top
Page 1 of 1 (5 items)
Actions