FetchDistortions(string, double, out double, out double, out double, out double)
- Updated2025-10-13
- 1 minute(s) read
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
| Name | Type | Description |
|---|---|---|
| selectorString | string | Specifies the result name. Example: "", "result::r1". You can use the BuildResultString(string) method to build the selectorString. |
| timeout | double | 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. |
| averageSinad | out double | Upon return, contains the averaged signal-to-noise and distortion ratio, in dB, of the demodulated signal. |
| averageSnr | out double | Upon return, contains the averaged signal-to-noise ratio, in dB, of the demodulated signal. |
| averageThd | out double | Upon return, contains the averaged total harmonic distortion, as a percentage, of demodulated signal. |
| averageThdWithNoise | out 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.