07-13-2023 11:22 AM
Hello,
I'm very new to signal processing and was wondering if I would be able to smooth out the signal I am getting from a flowmeter.
The figure is the current state of my signal.
As you can see, there is a sinusoidal tendency where the average value is somewhere around 1.
However, there is too much noise in the signal, and I want to filter it out to have a smooth signal coming out so that afterwards I can feed it into my controller.
I've tried fiddling with the WA denoise VI but it doesn't change the signal at all.
The filters don't work as well, so I'm guessing I'm not using them correctly or they are not used for this purpose.
Can I get some insight of what I should do to make the noisy signal into a smooth signal?
Thank you.
07-13-2023 11:45 AM
You have what appears to be a lower frequency signal you want to isolate while removing high frequency noise, so it's likely the type of filter you want is a "low pass" filter, meaning it's a filter that lets lower frequency signals pass while filtering higher frequency ones.
I would recommend you try a low pass Butterworth filter and see how close that gets you to what you want with your signal. You will probably have to tweak the input parameters of the filter to get something useful out of it.
Example:
Note that doing any sort of filtering will add a delay to your output, so be wary of that if you're feeding this back into something. You don't want to delay it so much that it's no longer an accurate reading.
07-14-2023 09:08 AM - edited 07-14-2023 09:14 AM
@gathanokos wrote:
As you can see, there is a sinusoidal tendency where the average value is somewhere around 1.
However, there is too much noise in the signal, and I want to filter it out to have a smooth signal coming out so that afterwards I can feed it into my controller.
So what exactly is the signal you are trying to isolate? What is your definition of a "smooth signal"?