LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unchanged analog value!

Solved!
Go to solution

Hi ,

I'm reading an increased analog value thru my DAQmx and I want to perform another action when the analog value reaches its max and stop increasing. How would I write my LV code to check for that condition.

Thanks

 

0 Kudos
Message 1 of 2
(1,376 Views)
Solution
Accepted by dphan128

With noise-free data, this is easy. Just place the value in a feedback node and compare the previous value with the current value. If the are equal, the condition is met.

 

If you have any kind of noise, you could use the "point-by-point linear fit" with a suitable history size and check if the slope is below a certain threshold.

Message 2 of 2
(1,373 Views)