Example Code

Adaptive Gain Control 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
AGCfxp.vi applies an adaptive gain to a point-by-point signal. The goal is to condition a signal that unpredictably changes power (fades, or sees some other form of interference) such that further processing is done on a relatively consistently powered signal. 


Description
This VI can be used directly after reading from an analog input. Below is a graph of a white noise signal (white) that abruptly decreases in average power, and the output from the AGCfxp.vi (output is red, gain is green). This VI shows statistically what is happening, as well as how the ds and mu input parameters effect the behavior of the output signal. Also, see the contact help of AGCfxp.vi for more information on the inputs and outputs.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Input the value
  2. Run VI 

Additional Information or References
VI Block Diagram
Block Diagram.png

 

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

 

 

Brian A.
National Instruments
Applications Engineer

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