Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

pci 6132: counter too sensitive?

$
0
0

I'm using the pci 6132 to sample a microphone, with analog triggering on that same input channel.
At the same time, parallel, I need to follow an index of a conveyor belt on which the samples move, so I can track which mic signal corresponds to which sample.

It seems that because I'm using a trigger on the analog inputs, I couldn't use CTR0, so I'm using CTR1 (on PFI3) to track the conveyor steps.
The problem is that this counter is _very_ sensitive. I count 4-9 edges where there should have been one. so I had to implement code to check the timing of the steps and to manually increment a variable, instead of using the counter output directly.

The device doesn't support 'digital filter', I already tried adding capacitors to the hardware to clean up the signal of noise, see attached image. Not much or no improvements though.
I have the same results in MAX-testpanel.

Is there a way to configure a hysteresis, or any other option to control the counter better? Am I making another mistake? Or is this card just not suited for the job?


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>