08-31-2012 04:42 PM
I am attempting to measure motor shaft rpm using a proximity sensor and a cDAQ-9174 with an NI 9401 module in slot 4. The output from the proximity sensor switches from 0V to approx 4.25V. The measurment frequency is expected to range from close to 1 Hz up to approximately 500 Hz. I hooked the signal to pin 16 and the COM to pin 1. When I choose ctr0, the measured value changes drastically, as shown in the attachd counter chart image. I checked my signal by hooking it to a NI 9205 and using an oscilloscope VI, as shown in the attached image. This shows exactly what I would expect for frequency and amplitude. What could be the problem when trying to use the counter? I have also tried this in MAX and get the same strange results.
Thanks,
Matt
Solved! Go to Solution.
09-04-2012 10:33 AM
Have you tried using one of the examples? Specifically, could you try Hardware Input and Output -> DAQmx -> Counter Input -> Counter - Read Pulse Width and Frequency (On Demand).vi.
09-07-2012 02:42 PM
Is it possible that the signal crosses the digital threshold slowly enough that you are getting multiple counts on every nominal edge? Your oscilloscope image is useless for detecting slow transitions. You need to sample at MHz rates to see the edges effectively. Some digital devices including counters can respond to noise or slowly varying inputs as though a high frequency burst appeared at the input.
Lynn
09-10-2012 09:52 AM
It appears the problem was due to noise in the signal. I was able to resolve this issue by acquiring the signal as a digital input rather than a counter input. The digital signal was then converted back to an analog signal using the Digital to Analog.vi. I was then able to make use of the Extract Tone.vi to get the frequency of the signal.
Thanks to Craig H. for his help solving this issue.
03-20-2013 01:17 PM
Hi,
I had same problem that you face previously but I use NI 9421 module. And I follow your instruction to capture the data by using the Digital to analog but I could not hook the line from DAQ assist to that waveform.
@ELDMATT wrote:
It appears the problem was due to noise in the signal. I was able to resolve this issue by acquiring the signal as a digital input rather than a counter input. The digital signal was then converted back to an analog signal using the Digital to Analog.vi. I was then able to make use of the Extract Tone.vi to get the frequency of the signal.
Thanks to Craig H. for his help solving this issue.
02-05-2014 06:21 AM
02-06-2014 01:50 PM
Hello.
Can you include more information about your sensor and the error message you are getting? (a print screen would be great). Also, as this forum was already set as "Solved", I would strongly recommend you to post this on a new thread (you can of course add a link to this one).