LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counter Task rest using DAQmx

Hi
 
 I built a VI using the counter on DAQmx. I am counting pulses for given time period and then computing speed of rotation. I need to reset the counter everytime the time expires.
 
I tried doing this several differnt ways but to no success. This works everytime I start and stop the program. If I place this in a while loop the counter never resets.
 
I also tried taking the difference between the counts(current -pprevious loop value). After the counter runs for a while it starts to increment the count even when it does not see a rising edge.
 
any suggestions to make this work would be of great help.
 
thanks in advance
 
Prasad
0 Kudos
Message 1 of 2
(2,427 Views)

Hi Prasad,

There is another discussion forum that talks about resetting counters in DAQmx.  As for the counter incrementing without seeing rising edges: one possibility could be noise in your signal, but it is difficult to tell at this point.  I suggest checking the signal that you are counting for noise. I also recommend checking to make sure that the signal is TTL compliant.

Regards,

Hal L.  

0 Kudos
Message 2 of 2
(2,405 Views)