MemoryOptimizedReadPowerSpectrum(PrecisionTimeSpan, ref double[], out RfsaSpectrumInfo)
- Updated2025-10-14
- 1 minute(s) read
Initiates a spectrum acquisition, returns power spectrum data, and provides additional spectrum information.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsa
public double[] MemoryOptimizedReadPowerSpectrum(PrecisionTimeSpan timeout, ref double[] data, out RfsaSpectrumInfo spectrumInfo)
Remarks
Memory optimization is not guaranteed.
Parameters
| Name | Type | Description |
|---|---|---|
| timeout | PrecisionTimeSpan | The time allotted for the method to complete before returning a timeout error. Using NationalInstruments.PrecisionTimeSpan.MaxValue specifies that the method waits until all data is available. |
| data | ref double[] | The power spectrum data. |
| spectrumInfo | out RfsaSpectrumInfo | Additional information about the power spectrum data array, including the frequency, in hertz (Hz), corresponding to the first element in the array; the frequency increment, in Hz, between adjacent array elements; and the number of spectral lines the method returned. |
Returns
The power spectrum data.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The MemoryOptimizedReadPowerSpectrum method was accessed after the associated NIRfsa object was disposed. |