Fetches I/Q data in separate arrays from a single record in an acquisition.

Syntax

Namespace: NationalInstruments.ModularInstruments.NIRfsa

public void MemoryOptimizedFetchIQSingleRecord< T >(long recordNumber, long numberOfSamples, PrecisionTimeSpan timeout, ref T[] iData, ref T[] qData, out RfsaWaveformInfo waveformInfo)

Remarks


Supported Type: Double

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 these methods.

Parameters

NameTypeDescription
recordNumberlong

Specifies the record to retrieve. Record numbers are zero-based.

numberOfSampleslong

Specifies the number of samples to fetch.

timeoutPrecisionTimeSpan

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.

iDataref T[]

Returns the acquired I data. New memory won't be allocated if the array is not null and the length is equal to numberOfSamples.

qDataref T[]

Returns the acquired Q data. New memory won't be allocated if the array is not null and the length is equal to numberOfSamples.

waveformInfoout RfsaWaveformInfo

Contains the absolute and relative timestamps for the operation, the time interval, and the actual number of samples read.

Exceptions

TypeDescription
System.ObjectDisposedException

The MemoryOptimizedFetchIQSingleRecord<T> method was accessed after the associated NIRfsa object was disposed.