View Single Post
  #2   Spotlight this post!  
Unread 29-01-2011, 15:28
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
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.
__________________

Reply With Quote