Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Counter counts twice as many edges as it should, but correct frequency. Why?

Solved!
Go to solution

Hi everyone,

I am using a PCI 6122 (S Series, DAQ-STC) and Labview 7.1 on a Windows XP.  There are only two counters on this card (Ctr 0 and Ctr 1) and I need to use both of them to count edges.  While testing the counters, I am inputing a TTL signal of 10kHz to the Gate of each counter, to be used as an external sample clock, and a 20Hz TTL signal into the Source of each counter, to be used as the input signal.  Ctr 0 counts 40 edges per second, i.e. twice as many as it should, while Ctr 1 is reading the correct number of edges, i.e. 20 edges per second.

 

The strange thing is that when I switch the connections of Gate and Source for both counters to measure the frequency (or period), both counters read the correct frequency, i.e. 20Hz.  To the best of my knowledge, both counters were reading the correct number of edges a couple of weeks ago.  Also, I have reset the device several times but it does not make a difference.  I am trying to figure out why this is happening and how to fix it, but I am no closer to answering either question.  Does anyone have any suggestions?

 

Thanks.

 

0 Kudos
Message 1 of 2
(4,583 Views)
Solution
Accepted by topic author DanceWiz
After many tests on my own and after speaking with a NI engineer and repeating some tests over the phone, it seems like there is something wrong with the (one) counter on the board.  I have sent it back for repairs (thankfully, it was still under warranty :). 
Message Edited by DanceWiz on 09-15-2009 09:58 AM
0 Kudos
Message 2 of 2
(4,561 Views)