Example Code

Find a Frequency Peak with an Adjustable Peak Threshold

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

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

Code and Documents

Attachment

Overview: Example takes signal inputs, makes the FFT, and finds the peaks in each signal.


Description: 

This example takes signal inputs and makes the FFT, then finds the peaks in each signal. This example could be modified to read DTMF values or find interfering tones in a signal. You can change the data generation portion of the code and replace it with a DAQ assitant or DAQmx structure to set this up for live peak monitoring.


Requirements: LabVIEW 2012 (or compatible), Hardware: none.


Steps to Implement or Execute Code:

1. Run the VI.
2. Use controls to play with parameters.
3. Move the red bar if the peak threshold.
4. Check the results in the Peak Locations indicator.
5. Stop the VI.


Additional Information or References: 

 

Find a Frequency Peak with an Adjustable Peak Threshold FP.png

 

Find a Frequency Peak with an Adjustable Peak Treshold BD.png


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

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