Example Code

Sine Wave Decimation with Xilinx CIC Compiler

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • PXI FPGA Module for FlexRIO

    Software

  • LabVIEW
  • LabVIEW FPGA Module

Code and Documents

Attachment

Description

This code demonstrates how to configure and use the Xilinx CIC Compiler on LabVIEW FPGA to decimate a sine wave signal.

Additional Information

The compiler is configured with the 100MHz clock, the sigma (input data) sampling frequency is set to 50MHz, and the decimation factor is set to 4. Thus the Nyquist frequency for the input signal will be 12.5MHz/2=6.25MHz. Any input frequency above this will attenuate. 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.