I'm trying to help a researcher get a PCI-6602 working as a four channel gated counter. They want to read and reset the counters at about 350hz, putting the
readings in a buffer to get a continuous stream of readings.
We've used the Counter-Continuous Output.vi to generate a 350 hz pulse output that he wants to use as a gate or sample clock on counter7. Works like a
charm. Wired that across the terminal block to Counter0 gate.
Not so much luck with input examples. I've been trying to get Counter - Count Edges (Continuous Clock).vi to work. Even with valid input channels
configured, it fails with error code -201298 (see dialog shot). I can get it to run by changing the boolean input to the DAQmx property
CI.CountEdges.CountReset.Enable from TRUE to FALSE. Then it at least counts, but just totalizes pulses continuously without resetting. Close, but no
cigar. Haven't found any combination of input channels etc that will make it run with the boolean set TRUE. Makes me nervous when hardware example code fails right off the bat.
The 6602 manual describes the action we want in the section on Duplicate Count Prevention, but gives no hint as to how one would achieve this with
DAQmx. Anybody have any useful suggestions? Answer might also help the person who posted "Running 6 counters at the same time"