Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

While program counter measurement for 3channels on 6602 I'm receiving error10016

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.
0 Kudos
Message 1 of 6
(3,750 Views)
Mr. Lentfert,

I have attached an example programm which you can setup in the number of counters you want to read at a time. Hope this helps.

Best Regards,

RikP
Applications Engineering
National Instruments
Rik Prins, CLA, CLED
Software Development Engineer
Message 2 of 6
(3,750 Views)
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

A solution maybe?
0 Kudos
Message 3 of 6
(3,750 Views)
Mr. Lentfert,

You can find this vi's in the following path:

C:\Program Files\National Instruments\LabVIEW 7.x\examples\daq\counter\ni-tio.llb

Best Regards,

RikP
Applications Engineering
National Instruments
Rik Prins, CLA, CLED
Software Development Engineer
0 Kudos
Message 4 of 6
(3,750 Views)
Mr. RikP,

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.

Maybe a solution?

Greetings,

Dennis Lentfert
0 Kudos
Message 5 of 6
(3,750 Views)
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
0 Kudos
Message 6 of 6
(3,750 Views)