|
analog input help
we have a very unique sensor that we are trying to encorporate into our design. it uses an analog channel and outputs a voltage ranging from 0 - 5 volts. when hooked to a motor in generates a sine wave with the teeth of the sine either rising or falling depending on which way the motor is spinning and the space of the pulse varries with the speed of the motor. we are hoping to use this as an encoder from our drive motors but need to create a bit of code to count the number of pulses, time between pulses, and if they are an increasing or decreasing pulse
has anyone else done anything similar to this that would be willing to provide some sample code or even able to think of any functions within labview/frc examples that would help with this.
thanks in advance.
|