TSA Welch (Array) VI
- Updated2024-07-30
- 4 minute(s) read
Computes the single-sided power spectral density (PSD) of a univariate time series using the Welch method, which is a variation of the periodogram method. This VI estimates the PSD by averaging periodograms of overlapping, windowed subsequences of the time series. Wire data to the Xt input to determine the polymorphic instance to use or manually select the instance.

Inputs/Outputs
sampling rate
—
sampling rate specifies the sampling rate, in hertz, of the univariate time series Xt. The default is 1.
frequency bins
—
frequency bins specifies the number of frequency bins for which this VI computes the single-sided power spectral density PSD. The length of the single-sided PSD is (frequency bins/2+1). The default is 1024.
Xt
—
Xt specifies the univariate time series.
window info
—
window info specifies the information of the sliding window that divides the time series into subsequences.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
dB on? (T)
—
dB on? specifies whether this VI returns the PSD in decibels or in a linear scale. If dB on? is TRUE, this VI returns the PSD in decibels. If dB on? is FALSE, this VI returns the PSD in a linear scale. The default is TRUE.
PSD
—
PSD returns information about the single-sided power spectral density (PSD).
error out
—
error out contains error information. This output provides standard error out functionality. |
TSA Welch Details
This VI estimates the PSD of a time series with the Welch method according to the following steps:
- Divides the time series into subsequences. The size of each subsequence equals the value of the length parameter.
- Applies a window to each subsequence and computes the PSD of each subsequence with the periodogram method.
- Averages the PSDs of the subsequences to form the resulting PSD s(f).
The PSD generated with the Welch method has smaller variance and is smoother than the PSD generated with the periodogram method.
Examples
Refer to the Power Spectral Density Estimation VI in the labview\examples\Time Series Analysis\TSAGettingStarted directory for an example of using the TSA Welch VI.
sampling rate
—
frequency bins
—
Xt
—
window info
—
window
—
error in (no error)
—
dB on? (T)
—
PSD
—
f0
—
S(f)
—
error out
—