From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Outlier detection on measurement data

Solved!
Go to solution

Hello everyone,

 

I am looking for a way to detect outliers of a sensor and delete them from my data. The challenge is, that I don't want to collect a number of data first, to recognize the outliers afterwards, but that with each new measured value it should be recognized whether it is an outlier or not. If it is an outlier, the value should not be displayed.

Attached you will find a vi with real measurement data which simulates the measurment in a for loop. In each cycle of the loop outliers should be recognized and deleted.

The picture shows an example what outliers are.

 

Any ideas how to go on?

 

Thanks a lot and best regards,

Michael

 

Download All
0 Kudos
Message 1 of 5
(3,627 Views)

Hi Michael,

 

a simple outlier filter according to your descriptions:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,619 Views)

Hello, Gerd,

Thank you very much for your feedback and suggestion. What I forgot to say is that the interesting measurement value can also fluctuate (see picture, red arrows mark the outliers) and is not constant as in the first example. In principle, the process can look like this, i.e. the limits to recognize the outlier have to adapt automatically.

How could one proceed here?

 

Thank you.

Many greetings
Michael

Download All
0 Kudos
Message 3 of 5
(3,594 Views)
Solution
Accepted by topic author MichaGue_01

Hi Michael,

 

now it is getting trickier…

 

What about a (Pt-By-Pt) Median filter?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(3,590 Views)

Hello Gerd, thank you very much. You gave me the right suggestion. Super!

 

2019-07-18_14h06_12.png2019-07-18_14h05_40.png

0 Kudos
Message 5 of 5
(3,579 Views)