LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert a counter to frequency

Hi,

I am using two counters on a 6023E board. I have two pulse generators which
give 1000 pulses in one rotation.
How can I convert the counts to frequency or speed in LabView?

Greetings,

Erik.
0 Kudos
Message 1 of 3
(2,905 Views)
If I understand you correctly, you want to convert two independant counter-values to frequency.
For a rough indication of the frequency you can periodically read-out the counter-values and subtract these from the previous readings.
Divide this by the time-interval between the readings gives you the number of counts per second (is lineair to frequency and speed).
0 Kudos
Message 2 of 3
(2,905 Views)
We found that the best way of obtaining speed measurement from a pulse generator is to use the buffered period measurement and scan some period (more than one), then eliminate the first measure (first period measurement may be incorrect due to the uncertainty in the start of measurement with respect to the slope of the signal), next average the measures obtained.
The next step is to divide base time used (internal base time of 20 mhz for example) by the average measure obtained in the preceding step: this is the average period measurement and must be multiplied by 60 and divided by n. of pulses per round: this gives you the rpm value.
Step two can be put in a loop in orded to obtain a continuous measurement, provided that you restart the counter once obt
ained a finished reading from it.
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 3
(2,905 Views)