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

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


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Spectrum Averaging with Hypersignal RIDE

2 ratings | 3.00 out of 5
Print

Overview

Spectrum averaging is performed for a variety of reasons in DSP and related engineering fields. The averaging of a spectrum in time allows for the relative contribution of ambient noise to be effectively identified, and a noise characteristic obtained. Additionally, averaging may be used in a variety of recognition algorithms to identify background noise environments and distinguish certain sounds from other sounds. There exists several methods of achieving this averaging of a waveform and it need not apply purely to spectrum processing – virtually any signal which can benefit from a frame-based average can employ the following techniques.


Detailed Description

This application note will demonstrate averaging using three different techniques, using the Global Frame Mean function, the Power Spectrum function, and the Running Frame Combiner function.

Averaging using the Global Frame Mean Function


In this method, a frame-based running sum is calculated and divided by a running frame count, effectively giving the dynamic frame-based average over time. The output waveform, y[m,n], is given as follows:

Averaging using the Power Spectrum Function

The second will make use of the Power Spectrum function which employs an exponential filter in time for the averaging. The output waveform, y[m,n], is given as follows:

Averaging using the Running Frame Combiner Function

The final method will employ a Running Frame Combiner to calculate the average frame based on the current average and the current incoming frame. In this case, the average is given by:

Averaging using the Global Frame Mean Function

In the Hypersignal RIDE application, as shown in Figure 1, spectrum averaging from a time-domain disk file can be accomplished (after performing an FFT and magnitude function) with Global Frame Mean block (found in Statistical Functions group) as follows:

Figure 1: Implementation of a frame-based average using Global Frame

Averaging using the Global Frame Mean Function

In the Hypersignal RIDE application, as shown in Figure 2, frame-based averaging from a disk file can be accomplished using the Power Spectrum block (found in DSP Functions group) as follows:

Figure 2: The Implementation of frame-based averaging using Power Spectrum

Of course, the resulting averaged waveform may be used by any other block function, not just the displays as shown above. The resulting average could have been written to a disk file, or used along with any other displays or processing functions.

Averaging using the Running Frame Combiner Function


In the Hypersignal RIDE application, as shown in Figure 3, averaging from a disk file may also be accomplished using the Running Frame Combiner block (found in Frame Functions group) as follows:

Figure 3: Averaging from disk file using Running Frame Combiner

Note that the contribution of the current frame is much greater using this approach as opposed to the first approach (using Global Frame Mean), and may also have more current frame contribution than the power spectrum method, depending upon the weighting factor used.
2 ratings | 3.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/).