LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop counter loop waiting on timeout

Solved!
Go to solution

I would like to use the Counter - Read Pulse Width (On Demand) example to measure RPM of a motor. Is there to stop the while loop if an infinite wait time (-1) is set on the 'DAQmx Read' timeout and there are no pulses detected by the DAQ card? As coded currently, the stop button will not kill the loop until a pulse is detected.  New to Labview. Thank you for your help. 

0 Kudos
Message 1 of 2
(1,198 Views)
Solution
Accepted by topic author tharptor

Might have answered my own question here. With the timeout set to 1 I get the behavior I was hoping for. Settings I used in the past caused immediate timeout but I think I was using the 'Counter - .... continuous' example rather than the on-demand version. 

0 Kudos
Message 2 of 2
(1,189 Views)