Read(string, double, ref Spectrum< float >)
- Updated2025-10-13
- 1 minute(s) read
Gets the hardware for acquisition, performs measurement on acquired data, and returns Spectrum measurement results.
Syntax
Namespace: NationalInstruments.RFmx.SpecAnMX
public int Read(string selectorString, double timeout, ref Spectrum< float > spectrum)
Remarks
This method maps to the RFmxSpecAn_SpectrumRead() function in C.
Parameters
| Name | Type | Description |
|---|---|---|
| selectorString | string | Pass an empty string. The signal name that is passed when creating the signal configuration is used. |
| 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. |
| spectrum | ref Spectrum< float > | Upon return, contains the spectrum trace. |
Returns
Returns the status code of this method. The status code either indicates success or describes an error or warning condition.