FetchAMToPMTrace(string, double, ref float[], ref float[], ref float[])
- Updated2025-10-13
- 1 minute(s) read
Fetches the AM-to-AM trace where the inputPowers array forms the x-axis of the trace, and the measuredAMToPM and curveFitAMToPM arrays form the y-axis of the trace.
Syntax
Namespace: NationalInstruments.RFmx.SpecAnMX
public int FetchAMToPMTrace(string selectorString, double timeout, ref float[] referencePowers, ref float[] measuredAMToPM, ref float[] curveFitAMToPM)
Remarks
This method maps to the RFmxSpecAn_AMPMFetchAMToPMTrace() 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 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. |
| referencePowers | ref float[] | returns the array of reference powers, in dBm. |
| measuredAMToPM | ref float[] | Upon return, contains the polynomial fit phase distortion values, in degrees, corresponding to the input powers. |
| curveFitAMToPM | ref float[] | Upon return, contains the phase distortion values, in degrees, corresponding to the input powers. |
Returns
Returns the status code of this method. The status code either indicates success or describes an error or warning condition.