09-06-2023 12:20 PM
I have NI PCI 6024E daq card and im using labview 2010 with daqmx.
I have a signal which contains pulses that i have to count. The problem is that in addition to the pulses there are some small voltage spikes as well in the signal. When i try to count the rising edges using counter, it counts the small voltage unwanted spikes as well and therefore gives a false reading.
I tried to find a way so that a threshold could be set for the counter so that counter counts only the pulses that cross that threshold but i came to know that counters doesnt have such threshold feature.
I need suggestions about how can i approach this issue?
Preferably i would like to implement a software solution to this problem.
Thanks alot
09-07-2023 03:10 AM - edited 09-07-2023 03:15 AM
Not a software fix: How about a simple RC filter ?
(dedicated counters sometimes have a analog threshold setting... , but that doesn't help here unless you build a comparator with settable threshold)
and isn't there a debounce filter for the counters, that maybe work? Depending on the actual pulse and spike timings you didn't 'valued' 😉
A software solution would be the median filter as a preprocessing for the analog pulse counter, that will remove spikes and 'sharpen' the edges.