Owning Palette: Distortion VIs
Installed With: Sound and Vibration Measurement Suite
Performs a total harmonic distortion plus noise (THD+N) analysis, including measuring the fundamental tone, and returns the detected fundamental frequency, detected fundamental amplitude, and THD+N. Signal in noise and distortion (SINAD) is the negative of THD+N in dB. The data type you wire to the scaled signal [EU] input determines the polymorphic instance to use.
Use the pull-down menu to select an instance of this VI.

![]() |
desired units specifies the engineering units of the returned measurements.
| ||||||||||||||||
![]() |
scaled signal [EU] specifies the scaled signal 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).
| ||||||||||||||||
![]() |
frequency range defines the frequency band of analysis.
| ||||||||||||||||
![]() |
advanced span [Hz] specifies a frequency span centered at the identified fundamental frequency in which noise and spurious components are ignored for the measurement. Specify a value of -1 to permit the measurement to automatically compute the minimum frequency span suitable for the time-domain window applied to the signal. | ||||||||||||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use exception control to treat what is normally an error as no error or to treat a warning as an error. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||||||||||||
![]() |
expected fundamental frequency specifies the expected frequency of the fundamental tone in hertz. Use expected fundamental frequency when the fundamental tone is not the largest amplitude component of the input signal. | ||||||||||||||||
![]() |
unit labels returns the unit label for each member of desired units.
| ||||||||||||||||
![]() |
complex spectrum returns the complex form of the computed spectrum.
| ||||||||||||||||
![]() |
THD+N returns the measured total harmonic distortion plus noise (THD+N), which is defined as the ratio of the RMS energy of the input signal less the RMS energy of the fundamental tone to the RMS energy of the input signal. | ||||||||||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
| ||||||||||||||||
![]() |
detected fundamental amplitude returns the amplitude of the detected fundamental tone. | ||||||||||||||||
![]() |
detected fundamental frequency [Hz] returns the frequency of the detected fundamental tone in hertz. |

![]() |
desired units specifies the engineering units of the returned measurements.
| ||||||||||||||||
![]() |
complex spectrum is the complex form of the computed spectrum.
| ||||||||||||||||
![]() |
frequency range defines the frequency band of analysis.
| ||||||||||||||||
![]() |
advanced span [Hz] specifies a frequency span centered at the identified fundamental frequency in which noise and spurious components are ignored for the measurement. Specify a value of -1 to permit the measurement to automatically compute the minimum frequency span suitable for the time-domain window applied to the signal. | ||||||||||||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use exception control to treat what is normally an error as no error or to treat a warning as an error. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||||||||||||
![]() |
expected fundamental frequency specifies the expected frequency of the fundamental tone in hertz. Use expected fundamental frequency when the fundamental tone is not the largest amplitude component of the input signal. | ||||||||||||||||
![]() |
unit labels returns the unit label for each member of desired units.
| ||||||||||||||||
![]() |
dup complex spectrum returns complex spectrum unchanged.
| ||||||||||||||||
![]() |
THD+N returns the measured total harmonic distortion plus noise (THD+N), which is defined as the ratio of the RMS energy of the input signal less the RMS energy of the fundamental tone to the RMS energy of the input signal. | ||||||||||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
| ||||||||||||||||
![]() |
detected fundamental amplitude returns the amplitude of the detected fundamental tone. | ||||||||||||||||
![]() |
detected fundamental frequency [Hz] returns the frequency of the detected fundamental tone in hertz. |