SINAD Analyzer

This VI takes a signal in and performs a full Signal in Noise and Distortion (SINAD) analysis, including measuring the fundamental frequency tone and returning the fundamental frequency and SINAD level in dB. THD Plus Noise is the negative of the SINAD in dB. You can use this polymorphic VI to analyze a waveform or an array of waveforms. The data type you wire to the signal in input determines the polymorphic instance to use.

The multichannel waveform array input should be the result of a multichannel acquisition where each element of the array of waveforms is a distinct and separate channel of data. This VI is designed to process a single channel or multiple channels continuously, typically from within a For Loop or a While Loop

SINAD Analyzer 1 Chan

signal in is the input time-domain signal.
t0 is the trigger time of the waveform.
dt is the time interval between data points in the waveform.
Y are the data values of a waveform.
export signals selects the signal to export to exported signals.

0None (fastest computation)
1Input signal
2Detected signal (single sine tone)
3Residual signal (signal - tone)
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 occurs 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 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.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
advanced search controls the frequency domain search area, center frequency and width, used for finding the signal’s fundamental frequency tone.
approx. fund. freq. is the center frequency used of the frequency domain search for the fundamental tone frequency. If set to the default value of -1.0, the tone with the highest amplitude will used as the fundamental tone.
search is the frequency width, as a percentage of the sampling rate, for the frequency domain search for the fundamental tone frequency.
exported signals is an optional input, detected tone, or residual time signal and spectrum. Select the signals to export in the export signals control.
exported time signal is the waveform containing the exported time signal as selected by export signals.
t0 is the trigger time of the waveform.
dt is the time interval between data points in the waveform.
Y are the data values of a waveform.
exported spectrum is the spectrum of the exported time signal as selected by export signals.
f0 is the start frequency of the spectrum expressed in Hertz.
df is the frequency resolution of the spectrum expressed in Hertz.
dB Spectrum (Hann) is the frequency resolution of the spectrum expressed in Hertz.
detected fundamental frequency contains the detected fundamental frequency resulting from searching the frequency domain. Use advanced search to set the frequency search range.
SINAD (dB) contains the measured Signal in Noise and Distortion (SINAD) as defined as the dB of the ratio of the RMS energy of the signal in to the RMS energy of the signal in less the energy in the fundamental. To compute the THD Plus Noise in dB, simply negate the SINAD in dB.
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 indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.
measurement info returns information about your measurement, mainly warnings for inconsistencies in your input signal.
uncertainty is reserved for future use.
Warning is TRUE if a warning is generated during processing.
comments contains a warning message when Warning is true.

SINAD Analyzer N Chan

signals in is the array of input time-domain signals.
signal in is the input time-domain signal.
t0 is the trigger time of the waveform.
dt is the time interval between data points in the waveform.
Y are the data values of a waveform.
export signals selects the signal to export to exported signals.

0None (fastest computation)
1Input signal
2Detected signal (single sine tone)
3Residual signal (signal - tone)
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 occurs 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 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.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
advanced search controls the frequency domain search area, center frequency and width, used for finding the signal’s fundamental frequency tone.
approx. fund. freq. is the center frequency used of the frequency domain search for the fundamental tone frequency. If set to the default value of -1.0, the tone with the highest amplitude will used as the fundamental tone.
search is the frequency width, as a percentage of the sampling rate, for the frequency domain search for the fundamental tone frequency.
exported signals is an array of exported signals.
exported signals is an optional input, detected tone, or residual time signal and spectrum. Select the signals to export in the export signals control.
exported time signal is the waveform containing the exported time signal as selected by export signals.
t0 is the trigger time of the waveform.
dt is the time interval between data points in the waveform.
Y are the data values of a waveform.
exported spectrum is the spectrum of the exported time signal as selected by export signals.
f0 is the start frequency of the spectrum expressed in Hertz.
df is the frequency resolution of the spectrum expressed in Hertz.
dB Spectrum (Hann) is the frequency resolution of the spectrum expressed in Hertz.
detected fundamental frequencies is an array containing the detected fundamental frequency resulting from searching the frequency domain of each waveform.
detected fundamental frequency contains the detected fundamental frequency resulting from searching the frequency domain. Use advanced search to set the frequency search range.
SINAD (dB) is an array containing the measured Signal in Noise and Distortion (SINAD) for each waveform.
SINAD (dB) contains the measured Signal in Noise and Distortion (SINAD) as defined as the dB of the ratio of the RMS energy of the signal in to the RMS energy of the signal in less the energy in the fundamental. To compute the THD Plus Noise in dB, simply negate the SINAD in dB.
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 indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.
measurements info is an array that returns information about your measurement, mainly warnings for inconsistencies in your input signal.
measurement info returns information about your measurement, mainly warnings for inconsistencies in your input signal.
uncertainty is reserved for future use.
Warning is TRUE if a warning is generated during processing.
comments contains a warning message when Warning is true.