Example Code

Comb Filter

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.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Overview

This example works as Comb filters,which are used in a variety of audio and signal processing algorithms. 

 

Description

Comb filters are used in a variety of audio and signal processing algorithms, include implementing echo and flanging effects. The simplest structure of a comb filter is the feed-forward comb filter that has the form y = x + ax[n-K], where K is an integer delay and a is a scaling constant.

 

Requirements

Software

  • LabVIEW 2012 or compatible 

Steps to Implement or Execute Code

  1. Specify the frequency you want to remove and your sampling rate and your block size.
  2. The VI will determine the delay K.
  3. Adjust the block size and sampling rate to see how this affects your frequency resolution and hence the quality of your filter.

Additional Information or References

 

Comb.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

 

Sean Ferguson
Application Engineering Specialist | RF and Reconfigurable Test

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

Tariff Impact Update Learn more