LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

keypress event

In my project I have  included a control say NUMERIC.After making this control active  I want to change the display in it as soon as any key from keyboard is pressed.If any key is pressed and hold down the value should change once.But the problem is the value is changing rapidly as long as key is  hold down.What should I do?I have attached such a project with this question.
0 Kudos
Message 1 of 2
(3,172 Views)
well you could try some anti-rebound technics (use a timer to get time since last key press)
but in your case you could simply go with a flag 
0 Kudos
Message 2 of 2
(3,164 Views)