Fetches the maximum gain error range, phase error range, and mean phase error for the device under test.

Syntax

Namespace: NationalInstruments.RFmx.SpecAnMX

public int FetchError(string selectorString, double timeout, out double gainErrorRange, out double phaseErrorRange, out double meanPhaseError)

Remarks

This method maps to the RFmxSpecAn_AMPMFetchError() 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 timeout, in seconds, for fetching the specified measurement. Set this value to an appropriate time longer than expected for fetching the measurement. A value of -1 specifies that the method waits until the measurement is complete.

gainErrorRangeout double

Upon return, contains the peak-to-peak deviation, in dB, in the gain of the device under test.

phaseErrorRangeout double

Upon return, contains the peak-to-peak deviation, in degrees, in the phase distortion of the acquired signal relative to the reference waveform caused by the device under test.

meanPhaseErrorout double

Upon return, contains the mean phase error, in degrees, of the acquired signal relative to the reference waveform caused by the device under test.

Returns

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