MemoryOptimizedFetchIQSingleRecordComplexWaveform(long, long, PrecisionTimeSpan, ref ComplexWaveform< ComplexSingle >, out RfsaWaveformInfo)
- Updated2025-10-14
- 1 minute(s) read
Fetches I/Q data from a single record in a single acquisition to optimize memory.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsa
public ComplexWaveform< ComplexSingle > MemoryOptimizedFetchIQSingleRecordComplexWaveform(long recordNumber, long numberOfSamples, PrecisionTimeSpan timeout, ref ComplexWaveform< ComplexSingle > waveform, out RfsaWaveformInfo waveformInfo)
Remarks
Memory optimization is not guaranteed.
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. |
| waveform | ref ComplexWaveform< ComplexSingle > | Contains the ComplexWavefrom object to be populated. New memory won't be allocated if the ComplexWaveform object is not null and its sammpleCount is same as the numberOfSamples. |
| waveformInfo | out RfsaWaveformInfo | Contains the absolute and relative timestamps for the operation, the time interval, and the actual number of samples read. |
Returns
Returns the acquired waveform.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The MemoryOptimizedFetchIQSingleRecordComplexWaveform property was accessed after the associated NIRfsa object was disposed. |