LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Determine if signal is changing?

Quick question:

 

I am acquiring a simple voltage signal from a pressure sensor.  And I am building a simple LabVIEW GUI for calibrating the measurement.

For the calibration, I am applying a knopwn pressure to the sensor.  And then I want to use LabVIEW to detect if the signal has stopped changing ... e.g., detect if it has settled to a steady-state voltage.

Any tips on a quick way to calculate this? 

I considered trying to fit a line to the last 5-10 seconds of data and then calculate the slope of the line ... if the slope is not very close to zero, then the signal has not flattened out.

http://www.medicollector.com
0 Kudos
Message 1 of 2
(2,213 Views)

Use some of the statisics functions.

There is a distribution calculation function for an array.

If you detect that the distribution is small enough to be considered 'steady-state'  you can take the mean.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 2
(2,197 Views)