03-25-2010 08:07 AM
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
Solved! Go to Solution.
03-25-2010 08:29 AM - edited 03-25-2010 08:34 AM
03-25-2010 08:43 AM
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.
03-25-2010 08:46 AM
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
03-25-2010 08:52 AM
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.