Fetches distortions for analog demodulation measurements.

Syntax

Namespace: NationalInstruments.RFmx.DemodMX

public int FetchDistortions(string selectorString, double timeout, out double averageSinad, out double averageSnr, out double averageThd, out double averageThdWithNoise)

Remarks

This method maps to the RFmxDemod_ADemodFetchDistortions() function in C.

Parameters

NameTypeDescription
selectorStringstring

Specifies the result name. Example: "", "result::r1". You can use the BuildResultString(string) method to build the selectorString.

timeoutdouble

Specifies the time, in seconds, for which the method waits for the measurement to complete. A value of -1 specifies that the method waits until the measurement is complete.

averageSinadout double

Upon return, contains the averaged signal-to-noise and distortion ratio, in dB, of the demodulated signal.

averageSnrout double

Upon return, contains the averaged signal-to-noise ratio, in dB, of the demodulated signal.

averageThdout double

Upon return, contains the averaged total harmonic distortion, as a percentage, of demodulated signal.

averageThdWithNoiseout double

Upon return, contains the averaged total harmonic distortion with noise, as a percentage, of the demodulated signal.

Returns

Returns the status code of this method. The status code either indicates success or describes a warning condition.