09-16-2009 06:34 AM
09-16-2009 02:57 PM
09-17-2009 07:00 PM
Hi ceties,
Let's start by taking into account the accuracy of the measurement method you are using. Here's a chart that shows the accuracy of the various counter methods (taken from the more recent X Series User Manual). In the chart, fx is the frequency to be measured, while fk is the timebase frequency (both in Hz):
I'm not sure how much error in RPM you will see since I still do not know the max rate of your input signal. The higher the frequency of your input, the more error you could potentially experience.
I'm not sure how you calculated 33 rpm error from just the timebase alone, but when measuring frequency the 100 ppm accuracy of the timebase is not going to make a significant difference in your measurement (compared to the measurement uncertainty). We can go through some numbers for an example:
Let's say we're on the 3600 ppr encoder rotating at 2500 rpm and using the single counter method.
The pulses would be coming in at 150,000 Hz (6.67 useconds per period).
During each pulse, we would expect to count 133 or 134 ticks of the 20 MHz timebase depending on the relative phase between the timebase and the encoder signal.
If the timebase was 20002000 or 19998000 instead, we would still expect 133 or 134 ticks in this case. I believe we would have to count at least 10,000 pulses at 100 ppm to generate a whole extra pulse during the frequency measurement.
This would give a period measurement of either 6.65 or 6.7 useconds. The driver then inverts this to receive frequency measurements of 150376 or 149254 Hz. Both numbers are within the maximum frequency error of ~1133 Hz calculated from the formula in the table above (20 MHz timebase, 150 kHz frequency to measure).
So, for the vast majority of frequency measurements using the single counter method you can essentially ignore the timebase accuracy since its contribution to accuracy is vastly overwhelmed by the uncertainty of the measurement method.
Best Regards,
John
09-18-2009 03:14 AM
09-26-2009 08:10 AM
10-05-2009 02:19 PM
Hey ceties,
Sorry for the delay, I've been out of the office for the last week and a half.
To make things easier, let's simplify the numbers. Let's say we were trying to measure a pulse that is between 2 and 3 ticks wide. If we barely miss one timebase edge, we should still pick up the next two. We might also possibly measure 3 ticks if the first timebase tick occurs towards the beginning of the pulse:
If the signal's duration is approximately an integer multiple of timebase ticks (say, 2) then we now have another possibility. We might have a scenario where we catch 1, 2, or 3 edges:
With the numbers I mentioned in my last post we were measuring a signal with a ~6.6667 u second period. 133 ticks of the 20 MHz timebase would only be 6.65 u seconds, while 134 ticks would be 6.7 u seconds. The signal is safely in between the two counts, so I would expect to only see the two possible outcomes. For other values there may be 3 possible options if there is an integer number of timebase ticks in one period of the signal (accounting for jitter of the signal and of the timebase).
Best Regards,
John