Writes an arbitrary waveform to the NI-RFSG, starting from the position of the last data written in the onboard memory.

Syntax

Namespace: NationalInstruments.ModularInstruments.NIRfsg

public void WriteWaveform(string name, ComplexWaveform< ComplexInt16 > data)

Remarks

This method takes the complex waveform of a 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 WriteWaveform.

Parameters

NameTypeDescription
namestring

Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words.

dataComplexWaveform< ComplexInt16 >

Specifies the complex waveform to load onto the waveform. The complex waveform passed to this method should be of type NationalInstruments.ComplexInt16.

Exceptions

TypeDescription
System.ObjectDisposedException

The WriteWaveform method was accessed after the associated NIRfsg object was disposed.