eddiemerckx
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by eddiemerckx
-
-
Hi guys,
I'm designing a robot which turns on a base. To determine the position it's in, I use a button (NI-DAQ) which is pressed every few second.
Now I want to count the amount of button presses.
I have the a DAQ-module (which reads the inputs) running in a while loop. When I increment a counter using a case-structure when the button is pressed, my increment is repeated every clockpulse.
I tried using an Event structure to execute when the boolean changes its value but that didn't work.
Using a second boolean as control to stop the incrementation didn't work well either.
Any ideas on how to do this?
Increment once on boolean change
in Application Design & Architecture
Posted
Thank you Ryan, while loading this topic, I came up the a similar solution involving a shift register and a control boolean. This seems to work.