Log in

View Full Version : rpm from encoder


Brandon_L
21-02-2012, 20:01
Were trying to get RPM out of our encoders, but nothings working. How do you get it? Were getting the rate from the get VI but that doesn't help, unless you can convert it somehow which were at a loss for

Ether
21-02-2012, 20:07
were trying to get an rpm from encoder, and nothings working. How?

You'll get a useful answer faster if you provide useful information.

What encoder ?

About how fast is the encoder spinning? (e.g. shooter wheel, drivetrain wheel, drivetrain steering, arm, elevator, etc etc)

Is it plugged into cRIO or Jaguar? Describe how it's wired.

4x, 2x, 1x ?

What does "nothings working" mean?

What have you tried so far? What were the results?

You get the idea.

RufflesRidge
21-02-2012, 20:22
Were getting the rate from the get VI but that doesn't help, unless you can convert it somehow which were at a loss for

That rate is in pulse per second (if your distance per tick is set to the default of 1). You should be able to convert that to RPM by knowing how many pulses per rev for your encoder.

Brandon_L
22-02-2012, 12:21
We converted it into rpm, but what should be a good time in ms to set the timer config in the begin too? Our indicator is twitching around so much we can't really read it

baronep
22-02-2012, 14:22
We are using DMA to read our encoders. Check out the DMA-Encoder example to implement this

Ether
22-02-2012, 23:55
We are using DMA to read our encoders. Check out the DMA-Encoder example to implement this

linked for readers:

http://www.chiefdelphi.com/forums/showthread.php?p=1133016#post1133016