Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

A simple count egdes task

Hello,

I have a simple little Question. My Problem is that the counter counts to many events if the second counter signal is connect. But first I will tell you what have I done. I create a simple egde count Task with MAX. MAX Tells me to connect my encoder signal to PFI 3. If I do this all is okay. But if i connect the second phase shifted encoder signal to PFI 5 (I need this for a another task) the counter counts two times more egdes as it should be. Is this okay? What have I made wrong? Is there a possibilty to avoid this?.

Thanks for your help

Best regards

Stefan Farmbauer
0 Kudos
Message 1 of 3
(4,168 Views)
Hi Stefan,

first of all, I need more information about your setup:

1. What NI device are you using (device number, E-Series or M-Series,...)?
2. What's the Version of your DAQmx driver (check out My System >> Software in MAX)?
3. What's the Version of your MAX?
4. Which counters did you specify for your tasks?
5. How did you configure your counter tasks (edge count, rising/falling,...)?
6. Which terminal block (to connect your device to the quadratur encoder) are you using?
7. Which Pins on the terminal block did you select (did you choose the right ones)?

Please answer the above questions, so I can be of assistance.

Bye

Daniel
NIG
0 Kudos
Message 2 of 3
(4,155 Views)
Hello Mr Riedelbauch

Thank you for your answer, but this morning I have found my problem. Sorry that I hadn't edit the thread. My problem was that I have forgotten to start the task. Every time have ridden a value with DAQmxReadCounterF64 the task has been started automatically and was reset to the init value everytime I try to get a value. So I always get the init value.

Best regards
Farmer
0 Kudos
Message 3 of 3
(4,152 Views)