I'm trying to program a counter measurement for 3 channels on a 6602, a 1 channel measurement works but now I want to program a measurement for 3 channels. While trying this I'm receiving an error 10016. I've attached an example of my program.
I get the idea of the program you have send me, but i have still some problems starting your program, I can't upload: Coutner buffer (NI-TIO).vi Coutner gate (NI-TIO).vi Coutner source (NI-TIO).vi
I still have some problems, because the program you've send on this forum can read one counter at a time right? But in my configuration I've to watch at three counters together in real time, monitoring signals with a per. of +/- 20 ms. After 60 ms. I've to do a calculation with the monitored signals.
The example Rik posted in this thread, will create a new task ID for each counter you wish to use. It is not possible to use 1 task ID include multiple counters, a group can only be used with one counter.
You will have to use a for loop to read the buffer for each counter. Since you are using a buffered operation the count register is sampled with a hardware clock and the values of the samples can be aligned in software.
The example does configure multiple counters but it is not possible to read the buffers at the exact same time. But the values in the buffers are hardware timed.
I hope this helps, if you still have questions I suggest contacting our office so we can discuses your application in more detail.
Kind regards,
Karsten
Applications Engineer National Instruments Netherlands 0348-433466