FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

What is best way to do pulse measurement?

I'd like to measure the RPM of a shooter wheel.  What LabVIEW construct will give me the best timing?

I'm using a simple tacho output from the motor shaft, so no fancy encoders here.

I expect about 100Hz pulses and I'd like to measure at 1% accuracy if possible.

Pulse counting is out because I want to respond quickly to speed changes.

Does the FPGA support pulse measurement?

Phil.

Get a life? This IS my life!
0 Kudos
Message 1 of 3
(3,897 Views)

Hi Phil,

The counter in the FPGA will do this for you.  It will also compute rate for you based on inter-edge timing.  Simply configure the counter for Up/Down counter mode and specify your channel. You don't have to specify both.  If you just have a simple tach, you only need to configure the Up channel.  The rest of the rate configuration is the same as Quadrature encoders.

-Joe

0 Kudos
Message 2 of 3
(2,729 Views)

Thanks

Looks like a good solution.

Phil

Get a life? This IS my life!
0 Kudos
Message 3 of 3
(2,729 Views)