LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Clearing daqmx read value

Hello,
 
When doing a single sample counter read using DAQmx in a while loop, is there any way to reset the data output on the DAQmx read task? For instance, say the value is 200, is there any way I can keep the task open and running and reset it to read zero?
 
Thanks,
 
David Joseph


Message Edited by KY Wildcat on 11-16-2007 10:57 AM
0 Kudos
Message 1 of 2
(2,619 Views)

Hi KY

There isn't a property or method in DAQmx for setting or resetting the count value when a task is running. You need to Stop and Start the task again. Otherwise, you can

create your counter in software. If you wire the counter output to an indicator, you can then create a local variable and create the logic that will

programmatically reset its value, e.g. when it exceeds 200.

http://digital.ni.com/public.nsf/allkb/65E3DBC715998C3286256E900075B7F8

I hope that helped,

KostasB

NI Applications Engineer

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