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, ComplexDouble[] data, bool moreDataPending)

Remarks

This method takes the data array of a complex baseband signals data as 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.

dataComplexDouble[]

Specifies the array of data to load onto the waveform. The data array passed to this method should be of type NationalInstruments.ComplexDouble.

moreDataPendingbool

Specifies whether or not the data block contains the end of the waveform. Set this parameter to TrueString to allow data to be appended later to the waveform. Splitting the waveform into multiple data blocks can reduce the memory requirements of the write operation. Append data to a previously written waveform by using the same waveform in the name parameter. Set moreDataPending to FalseString to indicate that this data block contains the end of the waveform. If the waveform is already allocated, this parameter is ignored.

Exceptions

TypeDescription
System.ObjectDisposedException

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