View Single Post
  #7   Spotlight this post!  
Unread 04-02-2011, 10:42
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,276
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Potentiometer code

I attached a VI I wrote to handle scaling of analog inputs, it assumes your Potentiometer has a linear taper (some have log tapers) Min and Max voltage are the voltages at the min and max angles, not necessarially 0v and 5v
Attached Files
File Type: vi Pot_to_Angle.vi (6.3 KB, 49 views)
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
Reply With Quote