Initiates a spectrum acquisition and returns power spectrum data.

Syntax

Namespace: NationalInstruments.ModularInstruments.NIRfsa

public double[] ReadPowerSpectrum(PrecisionTimeSpan timeout, out RfsaSpectrumInfo spectrumInfo)

Parameters

NameTypeDescription
timeoutPrecisionTimeSpan

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.

spectrumInfoout 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

TypeDescription
System.ObjectDisposedException

The ReadPowerSpectrum method was accessed after the associated NIRfsa object was disposed.