FetchMeasurement(string, double, out double, out double, out double)
- Updated2025-10-13
- 1 minute(s) read
Fetches the frequency and phase measured using the frequency count (Fcnt) measurement.
Syntax
Namespace: NationalInstruments.RFmx.SpecAnMX
public int FetchMeasurement(string selectorString, double timeout, out double averageRelativeFrequency, out double averageAbsoluteFrequency, out double meanPhase)
Remarks
This method maps to the RFmxSpecAn_FCntFetchMeasurement() 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 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. |
| averageRelativeFrequency | out double | Upon return, contains the signal frequency relative to the RF center frequency. Only samples above the threshold are used when you set the RFmxSpecAnMXFcntThresholdEnabled to True. |
| averageAbsoluteFrequency | out double | Upon return, contains the RF signal frequency. |
| meanPhase | out double | Upon return, contains the net phase of the vector sum of the I/Q samples used for frequency measurement. |
Returns
Returns the status code of this method. The status code either indicates success or describes an error or warning condition.