Thanks, Devin. I'll look it over shortly.
On a separate note, our experiments with the unmodified version have us scratching our heads a bit. One reading will be nearly right (though low), the next will be very low, a cycle which repeats. When the two measurements are added, the result is almost dead-on, with about 2 ms of pulses missing. It seems to us that the read is not waiting for the gating operation to complete before it reads and resets. Any thoughts?
Thanks. I was using the output 0 to trigger the gate, as specified in the example.
I appreciate your help, but in light of our difficulties, we decided to pre-condition the signal with a frequency to DC converter, and replace the CTR with an AI module.