Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Gated event counting on 6602

I am trying to use gated event counting or single pulse width measurement techniques to count TTL pulses on two counters during an external gate pulse. The problem is that if zero TTL pulses (a possible condition) go to both counters during the gate, the "armed" attribute does not seem to change from "yes" to "no", allowing the vi to kick out of a while loop and read the value that the counter stored.

Is there a way of setting up the counters so that

1) both counters only collect counts during an external gate
2) zero counts are allowed
3) the counters change state from "armed" to "not armed" at the end of the gate pulse regardless of whether there were TTL pulses on the source channel during the gate?

Thanks,

-Martin
0 Kudos
Message 1 of 2
(3,060 Views)
Based on your description of the application, I assume that you are using traditional DAQ. If you have an application where you sometimes expect to have zero source pulses between gates, you should enable synchronous counting (ND_COUNTING_SYNCHRONOUS) (referred to as "duplicate count prevention" in DAQmx). Many of the examples in traditional daq have this as an option that can be enabled on the front panel.

I hope this helps!
gus....
0 Kudos
Message 2 of 2
(3,049 Views)