LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filtering/smoothing a sine wave on FPGA?

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?

0 Kudos
Message 1 of 3
(1,432 Views)

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?


Certified LabVIEW Architect, Certified Professional Instructor
ALE Consultants

Introduction to LabVIEW FPGA for RF, Radar, and Electronic Warfare Applications
0 Kudos
Message 2 of 3
(1,404 Views)

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

0 Kudos
Message 3 of 3
(1,381 Views)