Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

TTL signal Frequency

I am measuring the number of edges (per second)of a TTL signal to calculate the RPM of 2 gear drives. I get a random error due to software timing. I cannot use hardware timing as my PCI6014 card has just 2 counters. I have tried all other methods(period,pulse mesurement)using counters.
I have now connected my TTL signal to my AI channel0 and I am scaning it 10000 scans/ sec. I am then passing this waveform to single tone extraction vi to find out the frequency of my input TTL signal. But I get a totally different reading as my frequency. I get some frequency value even when my shaft does not rotate.I also tried the period,duty cycle using another VI available in waveform analysis palatte.
I eliminated all noise in the input signal by representin
g my input signal as an integer. So my input signal would be either 0 or 5V.
Is this the right approach? Or am I messing up.Please suggest the best way to measure frequency of a TTL pulse without using a counter.
0 Kudos
Message 1 of 2
(3,541 Views)
Hi Balaji:

Please look at the example I am attaching with this post. Please keep in mind that you have to sample at least 10 times the frequency of your incoming signal.

Try connecting a simple square wave to analog input channel from a function generator and see if you can measure its frequency.

Regards,
Bharat Sandhu
Applications Engineer
National Instruments
Penny
0 Kudos
Message 2 of 2
(3,541 Views)