View Single Post
  #3   Spotlight this post!  
Unread 03-02-2011, 18:09
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Potentiometer code

It won't work, although your angles are calculated correctly.

The setpoint input (the desired position) must be is the same units as the process variable (the current position).

The potentiometer is in volts: 0-5v

You can either convert the pot voltage to match your angle range, or change your angles to be the pot voltage range.

The pot voltage min/max range will have to be measured by moving the arm to it's minimum/maximum position and reading the pot value through the LabVIEW front panel or a LV probe.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote