Potentiometers C+

Our team is trying to find a way to measure the position of our arm using a potentiometer. We’re using C++ we can’t find any programs for potentiometers.
Does anyone know the best way that we could program a potentiometer in C++ to give us its position?

-Thanks::ouch::

Potentiometers are an analog sensor. As such they would be plugged into the analog module on the cRIO. You should look at the analogchannel class, and the GetVoltage function within that class. You will have to multiple the voltage by some value, to get how far the pot has turned. This value can probably be found in the spec sheet for the POT.