Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How configure buffered counter with DAQPad6020E ?

I have a DAPad6020E and I would like count edge evenment. The maximum frequency of my signal is about 400Hz (2.5ms).

I try to use the different VI with buffered count with gate but without success : the gate signal is the OUT of counter1 connected to the GATE of counter0 ; the SOURCE input counter0 (400Hz).

For a signal gate with frequency 20hz (50ms), I have a count on OUT counter0 every 20 points (50ms/2.5ms). If I increase the frequency gate there is an error 10920 (speed of my system too low). The resolution of counter is 20Mhz yet !
I don't understand what happend exactly and I don't use very good all the parameters of buffered counter.

Someone could help me ?

Thank you
Christophe
0 Kudos
Message 1 of 3
(3,265 Views)
Hello,

Your DAQPad-6020E (for USB) works for interrupt data transfer, that is to say, the CPU is responsible of the data transfer.
During "buffered count operations", one sample need to be transfer each time the GATE signal falls. As this time, an interrupt request is generated. The CPU must stop all its current tasks in order to process this interrupt request. If your CPU is too slow or too busy, he will not have enough time to process the IRQ and some samples will not be transferred.
The counter of the DAQPad-6020E can count events from its internal timebase (20 MHz) and the count register is correctly incremented each time the SOURCE clock provides a rising edge but you cannot transfer all the samples (count register) to the RAM of your computer so fast due to the limitation of interrupt transfer.
With other DAQ hardware devices like DAQPad for firewire for example, DMA transfer is possible so that the CPU is not involved in the data transfer so transfer can be performed faster.

Here is a technical note on error 1920:
* Why Do I Get Error -10920 When Doing Buffered Counter Operations?
http://digital.ni.com/public.nsf/websearch/8FB9091CB9BB452B8525642000554799?OpenDocument

Hope this helps.

Matthieu Gourssies
National Instruments France.
0 Kudos
Message 2 of 3
(3,252 Views)
Thank you Matthieu for your answer

Christophe
0 Kudos
Message 3 of 3
(3,243 Views)