LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data decimation based on statistics

Hey,

 

Has anyone toyed with data decimation and statistics in LV? I.e I'm thinking something like an adaptable moving average filter for decimation, that stops decimating once something was outside of 4.5 sigma or so of the other measurements, and once it returns to that bound starts decimating again. Basically something that decimates a straight line but not anything that is a glitch (voltage spike, etc). This would be for scope waveforms - similar to LeCroys top function vs max.

 

Thanks!

David

0 Kudos
Message 1 of 4
(2,632 Views)

Hi David,

 

I'm thinking something like an…

As LabVIEW is a programming language you can turn your "thinking" into "programming"! 😄

 

What exactly do you have problems with?

 

Best regards,
GerdW


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

I am not seeing anything that couldn't be done fairly easily.  What do you want done in your waveform when outside the 4.5 sigma?  Delete the time sample?  Make it NaN?  Use previous average?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(2,589 Views)

Time to see if I can get it working 🙂

Just wanted to make sure it wasn't done before - I am a fan of code reuse.

0 Kudos
Message 4 of 4
(2,552 Views)