I know that "synchronous counting" is recommended for cases where there might not be any source edges between successive gate edges. But I wouldn't have expected the behavior described by
bestin. I'd thought that
some value would be buffered on each gate edge, but that the value itself can potentially be wrong if the counter isn't set up for "synchronous counting." I'd also thought it was most likely troublesome for buffered periods rather than buffered event (edge) counting.
So, in an effort to understand "synchronous counting" mode better, I'd like to describe a sequence and figure out what values should be buffered.
2 source edges
1st gate edge
1 source edge
2nd gate edge
0 source edges
3rd gate edge
2 source edge
s
4th gate edge
read all buffered data
Case A: buffered event (edge) counting, "synchronous counting" ON. I'd expect a buffer that looks like (2,3,3,5).
Case B: buffered event counting, "synchronous counting" OFF. I'd expect a buffer that looks like (2,3,
?,5) where
? is likely but not guaranteed to be 3. (If it isn't 3, what could it be? And would the next value also be wrong?)
Or would this indeed result in
bestin's symptoms and produce (2,3,5)?
Case C: buffered period measurement, "synchronous counting" ON. I'd expect a buffer that looks like (2,1,0,2).
Case
😧 buffered period measurement, "synchronous counting" OFF. I'd expect a buffer that looks like (2,1,
?,2) where
? may be either 1 (wrong) or 0 (correct). (Could it be anything else?). Even if it were wrong, I'd still expect the next value to be correct.
Or, should I expect a DAQ error instead?
-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.