View Single Post
  #1   Spotlight this post!  
Unread 04-02-2009, 07:41
martin417's Avatar
martin417 martin417 is offline
Opinionated old goat
AKA: Martin Wilson
no team
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Buford, GA
Posts: 719
martin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond repute
Question Labview questions, using motor and pot as a servo

Since there is no FORTRAN compiler for the cRIO , I am trying to do some programming in Labview. I have a motor attached to a 10 turn pot, and want to use it like a servo. Has anyone written a sub-vi that will take as input a desired pot reading and move the motor as required to achieve that reading? If so, would you be willing to share it?

Also, I am using a PID vi to track the target with the camera, and would like to set a larger deadband (the turret "hunts" back and forth trying to center the target, and I want it to stop when it's "close enough".) I have played with the PID constants, but can't stop the hunting, and there doesn't seem to be a deadband constant.
__________________
Former Mentor Team 1771
Former mentor Team 4509
Reply With Quote