Allocates onboard memory space for the waveform.

Syntax

Namespace: NationalInstruments.ModularInstruments.NIRfsg

public void AllocateWaveform(string name, int sizeInSamples)

Remarks

Use this method to specify the total size of a waveform before writing the data. Use this method only if you call WriteWaveform multiple times to write a large waveform in blocks.

If you allocate a waveform prior to writing it, NI-RFSG ignores the moreDataPending parameter in WriteWaveform.

The NI-RFSG device must be in the Configuration state before you call this method.

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.

sizeInSamplesint

Specifies the number of samples to reserve in the onboard memory for the specified waveform.

Exceptions

TypeDescription
System.ObjectDisposedException

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