Log in

View Full Version : Inverting Up/Down Counter Input


ThisIsSparta
11-02-2012, 15:38
I'm trying to use the premade Up/down counter to count the number of balls in the robot. Two IR sensors give out a digital input that can be plugged into the up and down sources on the counter. The problem is, the sensors give a natural true when nothing is detected, and give a false when something is detected. I know that normally when using them as straight up digital inputs a simple not function, ut with the way that the DOIs plug into the counter Open VI, using the Dig Src, I don't know how to invert the outputs of the DIOs so that the counter functions properly. (with the sensors as is, uninverted, they constantly add and subtract one so that the output is useless) Thanks in advance for any help!

Joe Ross
11-02-2012, 15:52
The counter open in up/down has inputs for whether it should trigger on the rising edge, falling edge, or both edges. It sounds like you want the falling edge.