MemoryOptimizedFetchIQMultiRecordComplex< T >(long, long, long, PrecisionTimeSpan, ref T)
- Updated2025-10-14
- 1 minute(s) read
Fetches I/Q data from multiple records in a single acquisition to optimize memory.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsa
public T[,] MemoryOptimizedFetchIQMultiRecordComplex< T >(long startingRecord, long numberOfRecords, long numberOfSamples, PrecisionTimeSpan timeout, ref T[,] data)
Remarks
Supported Type: NationalInstruments.ComplexDouble and NationalInstruments.ComplexInt16
Memory optimization is not guaranteed.
Parameters
| Name | Type | Description |
|---|---|---|
| startingRecord | long | Specifies the first record to retrieve. Record numbers are zero-based. |
| numberOfRecords | long | Specifies the number of records to fetch. |
| numberOfSamples | long | Specifies the number of samples per record. |
| 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. |
| data | ref T | Returns the acquired waveform. New memory won't be allocated if the array is not null and the lengths of its Dimension 0 and Dimension 1 are same as numberOfRecords and numberOfSamples respectively. |
Returns
Returns the acquired waveform for each record fetched.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The MemoryOptimizedFetchIQMultiRecordComplex<T> method was accessed after the associated NIRfsa object was disposed. |