07-09-2009 03:09 PM - edited 07-09-2009 03:12 PM
07-10-2009 09:24 AM
Hello Ceties,
Rewieving the document you've attached, I made the following calculations:
Method I:
Based on the equations: http://zone.ni.com/devzone/cda/tut/p/id/3619
The card will measure 166,67 ticks between two rising/falling edges. We won't know whether it will decide 166 or 167 as a result.
In case of 166 the result will be 20000000/166 = 120481,92 Hz which is 0,4% failure
In case of 167 the result will be 20000000/167 = 119760,48 Hz which is 0,2% failure
If you don't consider it accurate enough, I would rather choose Method III, if I were you, beacuse Method II is for thoose who measure around 5 MHz with the same base clock.
I hope it answers your question!
Best Regards,
Matyas
07-10-2009 11:13 AM
07-13-2009 08:43 AM
Hi Ceties,
:))
Yes, if you want to measure 600 kHz signal, the error will increase. I thought you were intend to measure upto 120 kHz.
In Method III, we do the following:
We have a known time period (1 ms), we have a frequency to measure (100 kHz), we will know how many pulses are going to be in that period ([100*e3]*[1*e-3]=100). First, we would like to divide this frequency with the first counter: we generate another known pulse train for 1 ms period with i.e. 500 pulses. In this case the rate will be 100/500 = 1/5.
Know, we are able to measure a lower frequency signal (100 kHz*1/5 = 20 kHz) with Method I. Which results a much more accurate measurement. That is the theory behind Method III.
Pulses per revolution to read will remain the same in each case: (frequency to measur)/(basis clock); in different methods we are trying to increase accuracy with measuring either a longer period (Method II) or diveded frequency (Method III).
I hope it will help moving forward with your project!
Regards,
Matyas
07-14-2009 09:33 AM