ReadPowerSpectrumSingle(PrecisionTimeSpan)
- Updated2025-10-14
- 1 minute(s) read
Initiates a spectrum acquisition and returns power spectrum data.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsa
public float[] ReadPowerSpectrumSingle(PrecisionTimeSpan timeout)
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. |
Returns
The power spectrum data.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The ReadPowerSpectrumSingle method was accessed after the associated NIRfsa object was disposed. |