WriteWaveform(string, double[], double[])
- Updated2025-10-14
- 1 minute(s) read
Writes an arbitrary waveform to the NI-RFSG, starting from the position of the last data written in onboard memory.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsg
public void WriteWaveform(string name, double[] iData, double[] qData)
Remarks
This method takes the I and Q vectors of a complex baseband signal as data input. If the waveform is large, use the AllocateWaveform method.
The NI-RFSG must be in the Configuration state before you call the WriteWaveform method.
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. |
| iData | double[] | Specifies the in-phase (I) component of the complex baseband signal. |
| qData | double[] | Specifies the quadrature (Q) component of the complex baseband signal. |
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The WriteWaveform method was accessed after the associated NIRfsg object was disposed. |