View Single Post
  #6   Spotlight this post!  
Unread 15-02-2012, 16:15
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: PID Velocity Control

Quote:
Originally Posted by j.cole View Post
Wow its good that I didn't see that before and waste a few hours trying to figure this out.

So it gives me the rate of the encoder perfectly?
Yes, you can look inside the Encoder Get VI to see (kind of) how this works. The help for the VI (what I checked before posting the first time) says that it is in pulses per second, put that does not appear to be correct based on looking at the internals and usage/comments in some previous team code.

The rate returned is actually Distance Per Count (set when opening) * Pulses/sec. So if you are just using rate for this encoder and not distance you can set your distance per count such that the rate returns in RPM.

To do this take Revs/min = the formula I wrote above and solve for the Distance Per Count term.
Reply With Quote