Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Potentiometers C+ (http://www.chiefdelphi.com/forums/showthread.php?t=90406)

Team 3705 29-01-2011 12:37

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::

Bot190 29-01-2011 15:28

Re: Potentiometers C+
 
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.


All times are GMT -5. The time now is 17:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi