01-10-2022 02:10 PM
I've got a funky sine wave that I wanted to smooth and make it a little less hectic. I noticed there's only a couple of filters offered within the FPGA. Would the butterworth or notch filter work for what I want to do? From what I read it didn't seem like it.
And as I was typing this I thought of a possibility. Couldn't I just use a basic averaging function (the DC and RMS Measurements Express VI) to get the mean of a small amount of samples? Start at 10 or so samples and work my way up?
01-10-2022 09:52 PM
You need to be more specific. Have you done a frequency analysis on the data coming in?
I recommend using a filter design tool such as https://www.ni.com/en-us/support/documentation/supplemental/06/working-with-labview-filtering-vis-an... to figure out what will clean up your signal.
What is the incoming sampling rate? If you are ok with removing 9 out of every 10 samples (averaging) what is the acceptable outgoing sampling rate?
Which NI FPGA are you using?
01-11-2022 10:38 AM
Ah, sorry. The incoming sampling rate is 50kS/s, so the loop is running at a rate of 20µS. And I'm using a cRIO-9056 so it looks like the FPGA is Xilinx Artix-7 7A75T.
I will check out the link you provided