06-11-2001 01:01 PM
06-12-2001 02:44 AM
05-15-2012 05:42 PM
I have a similar quandry. I want to…
The trigger pulse train, video & AI work fine. I can’t seem to get two counters on the same device running at different frequencies to work. I have moved to a simplified app that just attempts to put two counters on the same device with the same task or separate tasks. I’m starting to gather that one device can have only one CO task running on it simultaneously. Thoughts anyone?
-Jeff
05-16-2012 09:09 AM
On a M-series device, a finite pulsetrain uses both counters. The output pulses are generated on the counter you explicitly specify for the task, but the other counter is used behind the scenes to make a precision-timed gating signal which sorta-indirectly controls the # of pulses generated.
You *can* generate 2 counter outputs, but only if neither task is set for "Finite Sampling". Dunno if your app can handle generating both pulse trains with "Continuous Sampling", using software-timing to choose when to stop them, and then do some more software post-processing to clean up the mess left over from the extra pulses.
As I mentioned on another thread recently, you *might* be able to use a dummy Finite Sampling AO task and export its clock as one of your counter channels. Another avenue you might be able to consider is that the newer X-series boards can generate finite pulse trains without consuming a "helper" counter.
-Kevin P