IF-RIO

cancel
Showing results for 
Search instead for 
Did you mean: 

Bandpass Filter for 5641R

Hi,

I'm new to NI LabViw and FPGA. I had a project of using NI to do modulation.
I got a FPGA code for the modulation, however it generates a few harmonics very near to the centre frequency.

I tried to integrate a bandpass filter into the FPGA code by following the "Generating LabVIEW FPGA Code" tutorial, however it doesn't work.
I took the generated filter and integrated inside a VI which is within single-cycle Timed Loop of 2.5MHz.

Is there a step by step guide on how to create a filter for FPGA or any examples?
I found a lot of examples but not for FPGA code.

Or do you have any better solution to remove the harmonics?

I have:
1) PXIe-5641R (Take in a 9600kps TTL signal from DIO and modulate out 30MHz to CH0)
2) PXIe-6672 (Provide a 35MHz clock to 5641R)
3) Labview 2011
4) Digital Filter Design Toolkit

Thank you very much

Download All
0 Kudos
Message 1 of 7
(10,554 Views)

Hi everyone, 

 

Can anyone help me out?

Do you have an example of bandpass filter in the FPGA?

Thank you.

0 Kudos
Message 2 of 7
(10,527 Views)

Hi eton,

 

I believe there are several filters already built in as express functions on the LabVIEW FPGA palettes. These can be found by going to the Block Diagram then FPGA Math and Analysis. Depending on your application, you could combine two Butterworth filters or a Notch filter may suffice. Another option would be to search the Xilinx Coregen IP palette. Hope this helps!

Josh Y.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 7
(10,511 Views)

Hi Josh, 

 

Thank you for your reply.

 

I had tried the FPGA Math and Analysis - Butterworth Filter, however i could not set the cutoff frequency  of 30MHz. As the expected sampling rate can only set to 40MHz - the FPGA clock rate. Am I setting the correct configuration?

 

As for now, i will try the Xilinx Coregen IP.

 

Thank you.

 

0 Kudos
Message 4 of 7
(10,505 Views)

Hi eton,

 

You are most likely not setting the correct configuration.  This VI requires that you set both the FPGA clock rate and the Expected sample rate to at least double the Cutoff frequency.  Please see the image below for a proper configuration.

 

butterworth filter config.PNG

 

This is a requirement in order to satisfy the Nyquist Theorem.  For more information, please see this document: http://www.ni.com/white-paper/2709/en#toc4 .

 

I hope this helps!

 

Regards,

 

Dayna P.

Applications Engineer

National Instruments

0 Kudos
Message 5 of 7
(10,489 Views)

Hi Dayna, 

 

Thank you.

 

However, I could not compilate the FPGA code as the express filter could not supported in the single-cycle Timed Loop.

 

0 Kudos
Message 6 of 7
(10,480 Views)

Hi Eton,

 

You are correct.  The Butterworth Filter is not supported for the single-cycle timed loop.  See this help document for more information: http://zone.ni.com/reference/en-XX/help/371599H-01/lvfpga/fpga_timed_loop/

 

Regards,

 

Dayna P.

Applications Engineer

National Instruments

0 Kudos
Message 7 of 7
(10,472 Views)