LabVIEW Simulation

Digital Filtering


Download

Digital Filtering.vi (2010) LabVIEW Virtual Instrument (requires LabVIEW version 2010 or higher)
Digital Filtering.vi (8.5) LabVIEW Virtual Instrument (requires LabVIEW version 8.5 or higher)
Digital Filtering.exe Stand-alone executable (requires free LabVIEW 2010 SP1 runtime engine)

 

Description

In digital filtering, a Fourier transform is performed on a noisy spectrum to convert it to the frequency domain.  The resulting power spectrum is then multiplied by a filter function to remove all undesired frequency components.  (The filter function is equal to 0 at all frequencies to be removed, and equal to 1 at all other frequencies.)  An inverse Fourier transform then converts the data back to the original domain.

 

In this simulation, a noisy spectrum is simulated by adding together two sine waves with user-defined frequencies, amplitudes, and phase difference, along with Gaussian white noise.  The power spectrum is calculated and displayed.  The cutoff frequencies of a band-pass filter are entered, and the original data is displayed with all frequencies outside of the filter removed.

 

(Reference: Skoog, Holler, and Crouch Principles of Instrumental Analysis, 6th Ed Thomson Brooks/Cole 2007)

 

Front Panel

 

Digital Filtering Front Panel

Guiding Questions

    1. Make a sketch of the unfiltered signal that results with the following conditions:

Sine Wave #1:

Freq = 30, Amp = 2

Sine Wave #2:

Freq = 5, Amp = 1, Phase = 90

Noise:

2

    1. Now make sketches of the filtered signal when using bandpass cutoffs of:
      • 0 and 500
      • 0 and 100
      • 0 and 10
      • 4 and 6
      • 29 and 31
    2. What generalizations can you make regarding the effect of bandpass width on the resulting filtered signal?

 


Back to...

LabVIEW Simulations LabVIEW for Analytical Chemistry
Concordia College Mark Jensen's homepage
Concordia Chemistry Department

 

 

This page was last updated on September 21, 2011