LabVIEW Sound and Vibration API Reference

SV Continuous Swept-Sine THD VI

  • Updated2024-06-18
  • 4 minute(s) read

SV Continuous Swept-Sine THD VI

Owning Palette: Continuous Swept Sine VIs

Requires: Sound and Vibration Toolkit

Computes the total harmonic distortion (THD) and harmonic values of the input signals by performing a continuous swept-sine measurement.

reset? specifies to reset the continuous swept-sine measurement. The default is FALSE.
desired units specifies the engineering units of the output measurements.
THD unit specifies the unit for THD.

0dB (default)
1linear ratio
2%
harmonic component amplitude unit specifies the unit for amplitude in harmonic components.

0EU rms (default)
1EU peak
2EU peak-peak
3dB ref fund
scaled signals [EU] specifies the scaled signals expressed in the selected engineering units. To obtain a properly scaled signal, you can use the SVL Scale Voltage to EU VI or define a virtual channel in National Instruments Measurement & Automation Explorer (MAX).
maximum harmonic specifies the maximum, or highest frequency, harmonic used to measure THD. Specify a value of -1 to select all the harmonics less than the Nyquist frequency.
harmonics to visualize specifies the individual harmonic components to return in harmonic components.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
buffer settings specifies the mode and size of the buffer.
buffer mode specifies the mode to buffer the input data.

0Infinite length (default)—Specifies to buffer the input data from the first block to the current block.
1Last block data—Specifies to buffer the input data for the current block.
2Custom—Specifies to buffer the input data according to the value you specify in buffer size.
buffer size specifies the length of the buffer. The default is 0. buffer size takes effect only when you set buffer mode to Custom.
zero delay? specifies whether a filter delay exists between the input signal and the output signal. The default is FALSE.
unit labels returns the unit label for each member of desired units.
THD unit label returns the unit for THD.
harmonic component amplitude unit label returns the unit for amplitude in harmonic components.
scaled signals out [EU] returns the output scaled signals.
THD returns the measured THD, which is defined as the ratio of the RMS energy of the harmonics to the RMS energy of the fundamental tone.
frequency returns the frequency, in hertz, of the harmonic component to visualize at each test frequency.
amplitude returns the amplitude of THD.
harmonic components returns the measured sweep frequencies and harmonic amplitudes of the harmonics specified in harmonics to visualize. The row index stands for channels and the column index stands for each harmonic.
frequency is the independent variable of the continuous swept-sine THD.
amplitude returns the amplitude of harmonic components.
error out contains error information. This output provides standard error out functionality.

Log in to get a better experience