I've attached a library for using Continuous Turn Potentiometers instead of encoders. We first thought about using them after reading a whitepaper on chiefdelphi, posted by Daniel Katanski. The whitepaper is located here: http://www.chiefdelphi.com/media/papers/1743
We used continuous turn potentiometers the past two years instead of encoders in our drivetrain. We've found them to be more cost effective and more reliable then encoders, and easier to diagnose when they go bad (just need a multimeter).
Instead of polling the analog value at a high rate like the algorithm in the white paper uses, We instead used the Analog Triggers to do the dirty work. I tried to make the API as close as possible to the Encoder API. The attached project has a simple example as well as the library, and I also attached the HTML view.
I'm not sure that I did the error handling "correctly" as I'm a new LabVIEW programmer, but it does work in general.
Many thanks to Joe Hershberger from NI for answering my stupid questions, and quickly fixing a few bugs in the FPGA.


Reply With Quote
