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< T >(string name, T[] data)

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<T>.

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.

Parameters

NameTypeDescription
dataT[]

Specifies the array of data to load into the waveform.

Exceptions

TypeDescription
System.ObjectDisposedException

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