Can I make delay bafore action when button pressed

More
30 Mar 2012 15:20 #18876 by Vic
I would like to do some action with deley before execution.
Action must execute while button pressed. But before start execution I need some delay.
If user release button before delay finished action havn't to start.

Does that button behavior possible?

Please Log in or Create an account to join the conversation.

More
30 Mar 2012 16:00 #18877 by BigJohnT
Not a button behavior but rather a HAL component debounce.

linuxcnc.org/docview/2.5/html/man/man9/debounce.9.html

John

Please Log in or Create an account to join the conversation.

More
30 Mar 2012 16:19 #18879 by Vic
I am sorry but on that page text about input signal.
How I can use it in user interface?

Please Log in or Create an account to join the conversation.

More
30 Mar 2012 20:52 #18881 by BigJohnT
Can you explain with a bit more detail so we can understand what you are trying to do?

John

Please Log in or Create an account to join the conversation.

More
30 Mar 2012 22:14 #18882 by Vic
I press to button on user interface.
If I press button more then 2 second my function start work.
If i press button less 2 second nothing happend.

Please Log in or Create an account to join the conversation.

More
31 Mar 2012 11:53 #18886 by Rick G
Well you might want to look here...
linuxcnc.org/docs/html/hal_components.html
perhaps timedelay or oneshot might get you heading in the right direction.

Rick G

Please Log in or Create an account to join the conversation.

More
31 Mar 2012 12:51 #18887 by BigJohnT
Which Button? PyVCP? Axis? Stop making us guess what you want to know/do!

John

Please Log in or Create an account to join the conversation.

Time to create page: 0.244 seconds
Powered by Kunena Forum