Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Tutorial
NI Supported: Yes
Publish Date: Sep 27, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Learn LabVIEW DSP in 3 Hours - Example 2: Integrating Simple Filters

1 ratings | 4.00 out of 5
Print

LabVIEW DSP has new features like LabVIEW Project

To learn more about this feature follow the link below for step-by-step instructions.

Using the LabVIEW Project with LabView DSP Module

 

Complete the following steps to apply a Lowpass filter to a simulated a sine wave, and to display the filtered signal in time and frequency domains.

  1. Switch the execution target back to NI SPEEDY-33 by choosing Operate»Switch Execution Target»SPEEDY33 from the menu.
  2. Open the Example 1.vi that you built in previous example of this tutorial. Select File»Save As and rename the VI to Example 2.vi.
  3. Modify the front panel as shown in the following figure.


    [+] Enlarge Image
    Figure 1. Front Panel of Example 2.vi

    1. Create a copy of Input Signal – Time Domain waveform graph (by holding down Ctrl and dragging the graph). Review the Properties of the new graph and note that it has the same x and y scales as Input Signal – Time Domain graph. Label the new graph Filtered Signal – Time Domain.
    2. Create a copy of Input Signal – Frequency Domain waveform graph (by holding down Ctrl and dragging the graph) and label the new graph Filtered Signal – Frequency Domain.

  4. Modify the block diagram as follows.


    [+] Enlarge Image
    Figure 2. Block Diagram of Example 2.vi

    1. Place a Filter Express VI from Functions»Signal Processing»Filters palette to apply a Lowpass filter to the signal. Double click on the VI and configure it by entering 1000 for Cutoff Frequency, and selecting Infinite impulse response (IIR) filter with Chebyshev topology of order 5. Display the filtered signal by wiring the Filtered Signal output of the Express VI to Filtered Signal – Time Domain terminal.


      Figure 3. Configuration Window for Filter Express VI

    2. Create another copy of the Spectral Measurements Express VI by dragging it while holding the Ctrl key. Wire the Filtered Signal output of the Filter VI to the Signals input of Spectral Measurements. Then connect the FFT - (Peak) output to Filtered Signal – Frequency Domain terminal to display the frequency component of the filtered signal.

  5. Run the VI. Notice that as you increase the frequency beyond 1000Hz, the signal is attenuated.
  6. Save and close Example 2.vi.

To get a solution VI for this example refer to Learn LabVIEW DSP in 3 Hours - Solutions To Examples document linked below.



1 ratings | 4.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).