Spectral Measurements
- Updated2025-01-28
- 6 minute(s) read
Spectral Measurements
Performs FFT-based spectral measurements, such as the averaged magnitude spectrum, power spectrum, and phase spectrum on a signal.

Dialog Box Options
Option | Description |
---|---|
Selected Measurement | Contains the following options:
|
Result | Contains the following options:
|
Window | Specifies the window to apply to the signal.
|
Averaging | Specifies whether the Express VI performs averaging. |
Mode | Contains the following options:
|
Weighting | Contains the following options:
|
Number of Averages | Specifies the number of packets to average. The default is 10. |
Produce Spectrum | Contains the following options:
|
Phase | Contains the following options:
|
Windowed Input Signal | Displays the first channel of Signals. This graph displays the incoming signal with windowing applied. If you wire data to the Express VI and run it, Windowed Input Signal displays real data. If you close and reopen the Express VI, Windowed Input Signal displays sample data until you run the VI again. |
Magnitude Result Preview | Displays a preview of the magnitude measurement of the signal. If you wire data to the Express VI and run it, Magnitude Result Preview displays real data. If you close and reopen the Express VI, Magnitude Result Preview displays sample data until you run the VI again. |
Phase Result Preview | Contains the following options: If you wire data to the Express VI and run it, Phase Result Preview displays real data. If you close and reopen the Express VI, Phase Result Preview displays sample data until you run the VI again. |
Inputs/Outputs
![]() This input appears only if you place a checkmark in the Averaging checkbox. ![]()
Describes error conditions that occur before this node runs.
![]()
Contains the input signal or signals.
![]()
Contains error information. This output provides standard error out functionality.
![]() ![]() To compute the FFT power spectrum, LabVIEW converts the two-sided power spectrum to the single-sided power spectrum. ![]() ![]() ![]() ![]()
Returns the FFT phase spectrum and displays the results in degrees or radians.
|
FFT-based spectral computations assume that the finite block of signal data represents one period of a periodic signal. The computed spectrum of this effective periodically extended signal shows energy spreading into frequencies that were not present in the original signal. To reduce this spectral leakage, use smoothing windows to taper the sharp transitions in the effective signal. You do not typically use windows if you can acquire an integer number of cycles of each frequency component measured or if you are analyzing noise spectra.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Express VIs\Express VI - Spectral Measurements.vi
- labview\examples\Express VIs\Express VI - Filter.vi