Can I make delay bafore action when button pressed
30 Mar 2012 15:20 #18876
by Vic
Can I make delay bafore action when button pressed was created 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?
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.
30 Mar 2012 16:00 #18877
by BigJohnT
Replied by BigJohnT on topic Re:Can I make delay bafore action when button pressed
Not a button behavior but rather a HAL component debounce.
linuxcnc.org/docview/2.5/html/man/man9/debounce.9.html
John
linuxcnc.org/docview/2.5/html/man/man9/debounce.9.html
John
Please Log in or Create an account to join the conversation.
30 Mar 2012 16:19 #18879
by Vic
Replied by Vic on topic Re:Can I make delay bafore action when button pressed
I am sorry but on that page text about input signal.
How I can use it in user interface?
How I can use it in user interface?
Please Log in or Create an account to join the conversation.
30 Mar 2012 20:52 #18881
by BigJohnT
Replied by BigJohnT on topic Re:Can I make delay bafore action when button pressed
Can you explain with a bit more detail so we can understand what you are trying to do?
John
John
Please Log in or Create an account to join the conversation.
30 Mar 2012 22:14 #18882
by Vic
Replied by Vic on topic Re:Can I make delay bafore action when button pressed
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.
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.
31 Mar 2012 11:53 #18886
by Rick G
Replied by Rick G on topic Re:Can I make delay bafore action when button pressed
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
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.
31 Mar 2012 12:51 #18887
by BigJohnT
Replied by BigJohnT on topic Re:Can I make delay bafore action when button pressed
Which Button? PyVCP? Axis? Stop making us guess what you want to know/do!
John
John
Please Log in or Create an account to join the conversation.
Time to create page: 0.088 seconds