We set the DistancePerCount property value to 1. That gave us the rate in Hz.
We only used it to measure the RPM of our shooter, so it works if you don't actually need the distance.
Quote:
Originally Posted by Alan Anderson
Our "distance" is scaled to represent 60 times 1/250th of a revolution, so we get RPM directly from the rate output, and being an integer has never been an issue.
|
I actually like Alan's method better. Let the FPGA do the calculation.
For a 250 pulse encoder 1/250 * 60 = distanceperpusle.
GetRate will then yield RPM's direclly.