class="resources"
Computes the signal energy distribution in the joint time-frequency domain, using the short-time Fourier transform (STFT) algorithm. The STFT Spectrogram VI performs a sliding FFT. Example

![]() |
X is the time waveform. | ||||||||||
![]() |
time increment is the number of samples to shift the sliding window. The default is 1. Increasing time increment decreases the computation time and reduces memory requirements, but also reduces time-domain resolution. Decreasing time increment improves time-domain resolution, but increases the computation time and memory requirements. | ||||||||||
![]() |
window length is the actual length of the selected window. The default is 1. It corresponds to the number of samples used in calculating the Fourier transform. | ||||||||||
![]() |
window selector determines the type of analysis window the VI uses to compute STFT Spectrogram {X}.
|
||||||||||
![]() |
STFT Spectrogram {X} is a 2D array that describes the time waveform energy distribution in the joint time-frequency domain.
The number of rows (time axis) in STFT Spectrogram {X} is given by the following equation.
The number of columns (frequency axis) in STFT Spectrogram {X} is given by the following equation.
|
||||||||||
![]() |
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
Refer to the Transform Explorer Example VI in the labview\examples\math\sig_proc.llb directory for an example of using the STFT Spectrogram VI.