Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66749

Cleaning a waveform.

$
0
0

Hello there, i need some insigh on this project im coding.

In the atached files there is a .dat file, wich contains an array of 128000+/- numbers,

here are 2 images, one of the array on a graph (data)

data.PNG

 

and a code i use to extract the data from the file.(codigo)

codigo.PNG

 

Any ideas on how can i eliminate those big spikes?, i want to stay with the noisy signal just want to cancel any peaks, also this has to be dinamic, because this is data from a sensor, but other sensors have diferent offset or diferent amplitude, this is a bearing check and those peaks are imperfections, i want to eliminate them, then using an envelope detector (i have that, Hilbert-ish code), give the envelope some offset and then compare so i can see if the peak is within boundaries. 

i just need ideas on how to dinamically take those peaks, one idea i had in mind was slipiting the array in 10 pieces at least, then taking a percent of maximun values and replacing them with a Mean value, but that cropped the signal in diferents valleys and peaks (see below)

data2.PNG

i've attached 30.dat wich is another sample, on a different offset. (they are zipped because forum wont let me upload them in .dat format)

Thank you in advance :)


Viewing all articles
Browse latest Browse all 66749

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>