06-21-2006 08:18 AM
06-22-2006 06:11 AM
06-22-2006 09:33 AM
Under DAQmx, there's a property called "Duplicate Count Prevention" that can be set to return a count of 0 when there are 2 consecutive "gate" (sampling clock) edges without any "source" (timebase) edges in between. There've been several discussions about it here in the counter forums so you can search to find out more.
My own usage and my recollection of prior discussions has focused on buffered period/freq measurements. I suspect it works similarly for pulse width measurement, but am not 100% sure. Similar comment regarding unbuffered measurement.
The role of the min and max values is to let DAQmx decide what internal timebase to use for the measurement. If you need to resolve very long pulse widths, it'll need to use a slower timebase to avoid counter rollover. Otherwise, I don't know exactly how it decides which one to use. I typically use a DAQmx property node to set it explicitly because I was always used to thinking that way from traditional NI-DAQ.
-Kevin P.