Example Code

Frequency Spike Elimination in LabVIEW

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

Overview

The purpose of this VI is to eliminate, in software, the presence of an unwanted frequency spike, mainly at the 0-1 Hz range.

 

Description

This VI simulates a 1 Hz sine wave, with added noise to the signal. It takes the FFT of the simulated signal and filters out the frequency spike/response induced by the FFT. It accomplishes this by simply collecting the data into an array, and zeroing out the targeted frequency (1 Hz). See attached VI for full code.

 

Requirements

  • LabVIEW 2014 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI.

 

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

Rob W.

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

Comments
popobbb
Member
Member
on

can you please post a VI for labview 2012.

thanks