FetchIQSingleRecordComplexWaveform(long, long, PrecisionTimeSpan, out RfsaWaveformInfo, out ComplexWaveform< ComplexDouble >)
- Updated2025-10-14
- 1 minute(s) read
Fetches I/Q data from a single record in an acquisition.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsa
public ComplexWaveform< ComplexDouble > FetchIQSingleRecordComplexWaveform(long recordNumber, long numberOfSamples, PrecisionTimeSpan timeout, out RfsaWaveformInfo waveformInfo, out ComplexWaveform< ComplexDouble > waveform)
Remarks
The fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. This method is not necessary if you use the ReadIQSingleRecordComplex, ReadIQSingleRecordComplexWaveform, MemoryOptimizedReadIQSingleRecordComplex, or MemoryOptimizedReadIQSingleRecordComplexWaveform methods, as the fetch is performed as part of that methods.
Parameters
| Name | Type | Description |
|---|---|---|
| recordNumber | long | Specifies the record to retrieve. Record numbers are zero-based. |
| numberOfSamples | long | Specifies the number of samples to fetch. |
| timeout | PrecisionTimeSpan | Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. A value of NationalInstruments.PrecisionTimeSpan.MaxValue specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. |
| waveformInfo | out RfsaWaveformInfo | Contains the absolute and relative timestamps for the operation, the time interval, and the actual number of samples read. |
| waveform | out ComplexWaveform< ComplexDouble > | Specifies the acquired waveform. |
Returns
Returns the acquired waveform.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The FetchIQSingleRecordComplexWaveform<T> method was accessed after the associated NIRfsa object was disposed. |