LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reset counter

Solved!
Go to solution

I can not find a way to reset an M-series counter back to zero when using it as a simple event counter using LabVIEW and NI-DAQmx.  I am using a PXI-6229 and LabVIEW 8.5.1.  Can anyone suggest a way?

 

Steve

0 Kudos
Message 1 of 5
(6,227 Views)
Solution
Accepted by topic author wa5ycg
Here is an example if stop/restart the task is an acceptable solution.
Message Edité par JB le 25-03-2010 02:34 PM
Message 2 of 5
(6,215 Views)

Software solution :

 

Write the current value of the counter to a shift register of the while loop and then substract it from the new values.

0 Kudos
Message 3 of 5
(6,211 Views)

this might work ...

 

use DAQmx configure channel property node

Counter Input

    Count Edges

           Initial Count

 

 

set Initial Count to 0

 

not sure if you can do this while the task is running, you might need to stop the task / reset the count / restart task

 

 

 

 

 

 

0 Kudos
Message 4 of 5
(6,209 Views)

jeffneuner a écrit:

 

not sure if you can do this while the task is running, you might need to stop the task / reset the count / restart task


 

Unfortunately this property is not allowed while the task is running.

Reset is superfluous if stop/restart because the counter will anyway restart at the initial count.

0 Kudos
Message 5 of 5
(6,202 Views)