Jump to content

eddiemerckx

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by eddiemerckx

  1. 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.
  2. 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?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.