Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Dropped digital I/O counts at low pulse rates from NI USB-6212

I am using the digital impulse counter of the NI USB-6212 DAQ. The external device generating the square wave pulses is a flow-rate sensor.  For flow rates of about 200 ml/min I am reading the pulses at about 400 pulses/second, but for a lower flow rate, say 80 ml/min, the counter shows 0 pulses/second (and 0 pulses total of output data). If I read the output of the flow sensor through an analog input and plot the result in time, it is clear that the flow sensor is still outputting square wave pulses with a frequency <110Hz.

 

Any idea why the counter is outputting 0?  I am using DAQmx

Cl Cnt Edges

Start

Read as Counter U32, 1Samp  (as the 'read').

 

Is there a lower pulse rate limit on the digital I/O counter? Are the pulses too wide now to measure, causing counter time-out?  It would be really odd if the counter couldn't read low freq. pulses.  If there are too many 0 counts does the counter give-up counting? I don't have a read time-out wired, but if I did, i'd still get a VI output error.  I'm sure there's something really simple I'm missing. Any ideas?

0 Kudos
Message 1 of 4
(6,322 Views)

Hello,

 

Have you found a solution to this problem? I've been having the same problem...

 

-Alex

0 Kudos
Message 2 of 4
(5,944 Views)

Strange...

 

Can you post your VI and the specs page for what you are connecting the DAQ device to? 

 

If you're just counting edges it shouldn't matter how slow the input signal, you can read back "0" indefinitely which will then increment to "1" on the firt count, and so forth...

 

If you're performing a frequency measurement, it might be possible that the read is timing out if a complete period of the input signal does not complete fast enough.  If the frequency is ~100 Hz however it doesn't seem that this is likely--the default timeout is 10 seconds.

 

 

Best Regards,

John Passiak
0 Kudos
Message 3 of 4
(5,937 Views)

Just noticed Alex's other post here.

 

Alex, let's continue discussiong your issue on that thread.

 

If the original poster is still around, you can post here with any additional information regarding your application.

 

 

Best Regards,

John Passiak
0 Kudos
Message 4 of 4
(5,934 Views)