FetchSpectrum(string, double, ref Spectrum< float >, ref Spectrum< float >)
- Updated2025-10-13
- 1 minute(s) read
Fetches the spectrum and mask traces.
Use "segment(n)/chain(k)" as the selector string to read results from this method.
Syntax
Namespace: NationalInstruments.RFmx.WlanMX
public int FetchSpectrum(string selectorString, double timeout, ref Spectrum< float > spectrum, ref Spectrum< float > compositeMask)
Parameters
| Name | Type | Description |
|---|---|---|
| selectorString | string | Specifies a selector string comprising of the result name, segment number, and chain number. If you do not specify the result name, the default result instance is used. Example: |
| timeout | double | Specifies the timeout 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. This value is expressed in seconds. |
| spectrum | ref Spectrum< float > | Upon return, contains the spectrum trace. |
| compositeMask | ref Spectrum< float > | Upon return, contains the SEM measurement mask trace. |
Returns
Returns the status code of this method. The status code either indicates success or describes a warning condition.