LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Smoothing out waveform in LabView

Solved!
Go to solution

Hello,

 

I have a program where I am sending arbitrary waveforms to a function generator.  The waveforms that I am sending were measured off of an oscilloscope and contain a little noise.  What I would like to do is somehow find a line best fit for my waveforms that are smooth, but I would still like the waveforms to have the same exact shape.  For a visual reference I would like to go from the attached picture NoisySine to the attached picture SmoothSine as best as possible using LabView.  Can someone please point me in the right direction on how to do this.  I also attached the NoisySine's csv file for reference.  Thank you.

0 Kudos
Message 1 of 4
(154 Views)
Highlighted

Hi lucas,

 

your "noisy" signal looks very clean:

check.png

 

Anyway: apply a low pass filter on your sine signal!

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 2 of 4
(131 Views)

As so many Forum posters do, you failed to attach any LabVIEW code, so we cannot advise you more than say "Use a Low Pass Filter" (which GerdW already mentioned).  So you'll have to find it for yourself (use LabVIEW "Help" and search for "Filter").  Now, if we knew that you were talking about a Waveform vs a 1D Array vs a 2D Array vs a Dynamic Data Wire vs something else, we might have been a little more helpful ...

 

Bob Schor

0 Kudos
Message 3 of 4
(122 Views)
Solution
Accepted by lucasphee

I found a discussion that had what I was looking for.  Thank you though.

 

https://forums.ni.com/t5/Example-Programs/Waveform-Averaging-to-Remove-Noise-as-an-Alternative-to-Us...

0 Kudos
Message 4 of 4
(73 Views)