Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

I don´t know, why event counter doesn´t work

Hi, I have a problem. I use DAQ 6221 and when I configure in test panel of Measurement & Automation the edge counting, this is functional. Now I trie to run the code example of DAQmx ANSI C Dev, CntDigEv_Fn and the code ran, I hadn't problem, but the counter wasn't functional. I don´t know what's wrong. Please If somebody know, please tell me. It´s very important.
0 Kudos
Message 1 of 3
(2,691 Views)
Hi,

The first thing that I would make sure is that you have the correct device number in the example you are trying to run. That is, the default for this program is dev1, and if this is not the same as in MAX then obviously your program won't run. So, make sure that these are the same, and let me know either way what happens.

George
0 Kudos
Message 2 of 3
(2,676 Views)
Hi George, Thank you I didn´t understand about source and gate when I used the counter, and that was my error, but I resolved that problem.
0 Kudos
Message 3 of 3
(2,670 Views)