03-06-2007 04:07 PM
03-06-2007 09:27 PM - edited 03-06-2007 09:27 PM
Message Edited by UBAP on 03-06-2007 09:31 PM
03-06-2007 09:30 PM
03-07-2007
12:52 PM
- last edited on
11-25-2025
05:48 PM
by
Content Cleaner
UBAP,
I see a few issues with your application. First you specify a minimum frequency of ~1.19 Hz, however, since you are measuring rotational speeds of < 20 RPM your pulse train will drop well below that value frequency = RPM / 30. Even at 20 RPM the frequency is 0.667 Hz. The second thing that I notice is that your voltage plot is sampling the waveform at a very slow rate. As a result you almost miss the pulses completely (they only show a magnitude of <0.4 volts. The behavior you are seeing sounds like very high frequency ringing that you will not be able to see unless you sample a whole lot faster > 200 kS/s or so. You may even need to sample faster to see the ringing.
Your programming overall looks correct. I am 95% sure that it is the external signal that is causing the problem. Since the motor is moving so slowly, it is possible to use internal digital filtering available using the DAQmx driver. To enable digital filtering place a DAQmx channel property node, right click and select Properties >> Counter Input >> Frequency >> Digital Filter >> Enable. Right click again and click Change All To Write. Right Click a third time and select Add Element. Right click on the second element and select Properties >> Counter Input >> Frequency >> Digital Filter >> Minimum Pulse Width. Set Enable to true, and set the minimum pulse width to 2.55 ms (the longest available filter setting). You can read more about digital filtering in the M Series User Manual page 7-32 available at:
https://www.ni.com/docs/en-US/bundle/pci-pcie-pxi-pxie-usb-62xx-features/resource/m-series-user-manu...
Let me know if this does not fix the problem.
Regards,
Neil S.
Applications Engineer
National Instruments
03-08-2007 11:25 AM
03-09-2007 10:30 AM