FetchRawIQData(string, double, int, long, ref ComplexWaveform< ComplexSingle >)
- Updated2025-10-13
- 1 minute(s) read
Fetches I/Q data from a single record in an acquisition.
Syntax
Namespace: NationalInstruments.RFmx.InstrMX
public int FetchRawIQData(string selectorString, double timeout, int recordsToFetch, long samplesToRead, ref ComplexWaveform< ComplexSingle > data)
Parameters
| Name | Type | Description |
|---|---|---|
| selectorString | string | Pass an empty string. |
| timeout | double | Specifies the timeout, in seconds, for fetching the raw IQ data. A value of -1 specifies that the VI waits until all data is available. A value of 0 specifies the VI immediately returns available data. The default value is 10. |
| recordsToFetch | int | Specifies the record to retrieve. Record numbers are zero-based. The default value is 0. |
| samplesToRead | long | Specifies the number of samples to fetch. A value of -1 specifies that RFmx fetches all samples. The default value is -1. |
| data | ref ComplexWaveform< ComplexSingle > | Returns the complex-value time domain data array. The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. To calculate the instantaneous power of a sampled I/Q point, use the equation (I2 + Q2) / 2R, where R is the input impedance in ohms. For RFmx, R = 50 ohms. |
Returns
Returns the status code of this method. The status code either indicates success or describes a warning condition.