View Single Post
  #2   Spotlight this post!  
Unread 28-03-2010, 20:18
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Closed Loop Speed Control

Presumably, you are using the Motor Set Speed VI, which in spite of its name, sets the percentage of time that the motor is given full current. In order to control the speed of the motor, you'll want to use some form of control to close the loop -- as the topic correctly states.

If you are having trouble getting the basic I/O, there is LV example called Motor with Encoder that you can compare to.

If the control is the difficult part, I'd add a PID VI to the loop and use the measured encoder speed, the target speed, and the PID coefficients to tune the controller.

Greg McKaskle
Reply With Quote