11-28-2011 12:33 PM
I have a Low-Frequency 1 Counter measurement in a VI that I wrote. There are two of them in the same program, and one of them reads accurately at ~118 Hz. The other one occasionally doubles the frequency. The true signal is ~30Hz, but the display reads 60Hz half the time. What am I doing wrong and how can I fix it?
11-28-2011 12:40 PM
you may need to look for "aliasing"
11-28-2011 12:45 PM
To my knowledge "aliasing" occurs to do undersampling a signal, and results in an apparently lower frequency. If the program has no problem distinguishing 118 Hz it is not undersampling 30 Hz. The frequencies stated have been measured by oscilloscope.
11-28-2011 01:01 PM
Try tracking the delta time between your freq checks. I fmemory serves me that VI accepts a delta time input that if not provided by the caller will be calcualated by the driver based on when it THINKS it was last checked.
Trying to help,
Ben
11-28-2011 01:26 PM
adding to the above...
a low pass filter (if availabel on borad for your widget) may help if the is a mismatch between the output/input impeadance resulting in reflection or "rining" which could give you multiple counts per unit time.
Ben
11-28-2011 02:53 PM
Ben wrote:a low pass filter (if availabel on borad for your widget) may help if the is a mismatch between the output/input impeadance resulting in reflection or "rining" which could give you multiple counts per unit time.
That's exactly the issue I had about 15 years ago reading pulses from an instrument. A simple termination resistor at the input eliminated the problem.