FetchHarmonicMeasurement(string, double, out double, out double, out double, out double)
- Updated2025-10-13
- 1 minute(s) read
Fetches the power measured at the harmonic frequency.
Syntax
Namespace: NationalInstruments.RFmx.SpecAnMX
public int FetchHarmonicMeasurement(string selectorString, double timeout, out double averageRelativePower, out double averageAbsolutePower, out double rbw, out double frequency)
Remarks
This method maps to the RFmxSpecAn_HarmFetchHarmonicMeasurement() function in C.
Parameters
| Name | Type | Description |
|---|---|---|
| selectorString | string | Specifies the result name and harmonic number. Example: "harmonic0", "result::r1/harmonic0". You can use the BuildHarmonicString2(string, int) method to build the selector string. |
| 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. |
| averageRelativePower | out double | Upon return, contains the average power, in dB, relative to the fundamental power measured at the harmonic. |
| averageAbsolutePower | out double | Upon return, contains the average absolute power, in dBm, measured at the harmonic. |
| rbw | out double | Upon return, contains the resolution bandwidth (RBW), in hertz (Hz), which is used by the harmonic measurement, for the harmonic. |
| frequency | out double | Upon return, contains the RF frequency, in Hz, of the harmonic. |
Returns
Returns the status code of this method. The status code either indicates success or describes an error or warning condition.