Download Help (Windows Only) |

**Owning Palette:** Online JTFA VIs

**Requires:** Advanced Signal Processing Toolkit

Computes the online short-time Fourier transform (STFT)-based spectrogram for **signal**. Wire data to the **signal** input to determine the polymorphic instance to use or manually select the instance.

Use the pull-down menu to select an instance of this VI.

reassigned? specifies whether to reassign the spectrogram by moving dispersed energy to the local center of gravity in the joint time-frequency domain. The reassignment can improve the readability of the spectrogram. The default is FALSE. | |||||

reset? specifies whether to clear the buffer for the online computation and use the new window info you specify. The default is FALSE. | |||||

signal specifies the input signal. | |||||

time-frequency sampling info specifies the density to use to sample the signal in the time-frequency domain and defines the size of the resulting 2D time-frequency array.
| |||||

window info specifies the sliding window to use to truncate the signal and defines the resolution of the resulting time-frequency representation.
| |||||

error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | |||||

user defined window specifies the sliding window to use to compute the STFT. If you specify a value for user defined window, this VI ignores the settings in the window info input. Use window info to specify a sliding window to use.
| |||||

spectrogram returns the quadratic time-frequency representation of the signal. Each row corresponds to the instantaneous power spectrum at a certain time. Use the TFA Spectrogram Indicator to display the spectrogram on an intensity graph. You can save the time-dependent 2D array to a text file for use in another software environment. The resulting text file contains only Z values and does not retain the time axis information or the frequency axis information. You can use the TFA Get Time and Freq Scale Info VI to compute the time scale information and the frequency scale information of the time-frequency representation.
| |||||

scale info returns the time scale and the frequency scale information of the time-frequency representation, including the time offset, the time interval between every two contiguous rows, the frequency offset, and the frequency interval between every two contiguous columns of spectrogram. Use the TFA Get Time and Freq Scale Info VI to return detailed information about the time scale and the frequency scale. | |||||

error out contains error information. This output provides standard error out functionality. |

reassigned? specifies whether to reassign the spectrogram by moving dispersed energy to the local center of gravity in the joint time-frequency domain. The reassignment can improve the readability of the spectrogram. The default is FALSE. | |||||

reset? specifies whether to clear the buffer for the online computation and use the new window info you specify. The default is FALSE. | |||||

signal specifies the input signal. | |||||

time-frequency sampling info specifies the density to use to sample the signal in the time-frequency domain and defines the size of the resulting 2D time-frequency array.
| |||||

window info specifies the sliding window to use to truncate the signal and defines the resolution of the resulting time-frequency representation.
| |||||

error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | |||||

user defined window specifies the sliding window to use to compute the STFT. If you specify a value for user defined window, this VI ignores the settings in the window info input. Use window info to specify a sliding window to use.
| |||||

sampling rate specifies the sampling rate of signal in hertz. sampling rate must be greater than 0, or this VI sets sampling rate to 1 automatically. The default is 1. | |||||

spectrogram returns the quadratic time-frequency representation of the signal. Each row corresponds to the instantaneous power spectrum at a certain time. Use the TFA Spectrogram Indicator to display the spectrogram on an intensity graph. You can save the time-dependent 2D array to a text file for use in another software environment. The resulting text file contains only Z values and does not retain the time axis information or the frequency axis information. You can use the TFA Get Time and Freq Scale Info VI to compute the time scale information and the frequency scale information of the time-frequency representation.
| |||||

scale info returns the time scale and the frequency scale information of the time-frequency representation, including the time offset, the time interval between every two contiguous rows, the frequency offset, and the frequency interval between every two contiguous columns of spectrogram. Use the TFA Get Time and Freq Scale Info VI to return detailed information about the time scale and the frequency scale. | |||||

error out contains error information. This output provides standard error out functionality. |

reassigned? specifies whether to reassign the spectrogram by moving dispersed energy to the local center of gravity in the joint time-frequency domain. The reassignment can improve the readability of the spectrogram. The default is FALSE. | |||||

reset? specifies whether to clear the buffer for the online computation and use the new window info you specify. The default is FALSE. | |||||

signal specifies the input signal. | |||||

time-frequency sampling info specifies the density to use to sample the signal in the time-frequency domain and defines the size of the resulting 2D time-frequency array.
| |||||

window info specifies the sliding window to use to truncate the signal and defines the resolution of the resulting time-frequency representation.
| |||||

error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | |||||

user defined window specifies the sliding window to use to compute the STFT. If you specify a value for user defined window, this VI ignores the settings in the window info input. Use window info to specify a sliding window to use.
| |||||

sampling rate specifies the sampling rate of signal in hertz. sampling rate must be greater than 0, or this VI sets sampling rate to 1 automatically. The default is 1. | |||||

spectrogram returns the quadratic time-frequency representation of the signal. Each row corresponds to the instantaneous power spectrum at a certain time. Use the TFA Spectrogram Indicator to display the spectrogram on an intensity graph. You can save the time-dependent 2D array to a text file for use in another software environment. The resulting text file contains only Z values and does not retain the time axis information or the frequency axis information. You can use the TFA Get Time and Freq Scale Info VI to compute the time scale information and the frequency scale information of the time-frequency representation.
| |||||

scale info returns the time scale and the frequency scale information of the time-frequency representation, including the time offset, the time interval between every two contiguous rows, the frequency offset, and the frequency interval between every two contiguous columns of spectrogram. Use the TFA Get Time and Freq Scale Info VI to return detailed information about the time scale and the frequency scale. | |||||

error out contains error information. This output provides standard error out functionality. |

Refer to the following VIs for examples of using the TFA Online STFT Spectrogram VI:

- Online Spectrogram Monitoring (Simulated) VI: labview\examples\Time Frequency Analysis\TFAFunctions
- Online Spectrogram Monitoring (DAQmx) VI: labview\examples\Time Frequency Analysis\TFAFunctions
- Online Spectrogram Monitoring (Sound Card) VI: labview\examples\Time Frequency Analysis\TFAFunctions

Helpful

Not Helpful