Gets the average of total harmonic distortion (THD) present in the signal, as a percentage.

Syntax

Namespace: NationalInstruments.RFmx.DemodMX

public int GetAverageThd(string selectorString, out double value)

Remarks

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

Parameters

NameTypeDescription
selectorStringstring

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

valueout double

Upon return, contains the average of THD present in the signal, as a percentage.

Returns

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