NIRfsg Namespace

Table of Contents

RfsgArb.AllocateWaveform Method

  • Updated2025-02-03
  • 1 minute(s) read
RfsgArb.AllocateWaveform Method

RfsgArbAllocateWaveform Method

Allocates onboard memory space for the waveform.

Namespace: NationalInstruments.ModularInstruments.NIRfsg
Assembly: NationalInstruments.ModularInstruments.NIRfsg.Fx45 (in NationalInstruments.ModularInstruments.NIRfsg.Fx45.dll) Version: 2025

Syntax

public void AllocateWaveform(
	string name,
	int sizeInSamples
)
Public Sub AllocateWaveform ( 
	name As String,
	sizeInSamples As Integer
)

Parameters

name  String
Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words.
sizeInSamples  Int32
Specifies the number of samples to reserve in the onboard memory for the specified waveform.

Exceptions

ExceptionCondition
ObjectDisposedException The AllocateWaveform(String, Int32) method was accessed after the associated NIRfsg object was disposed.

Remarks

Use this method to specify the total size of a waveform before writing the data. Use this method only if you call WriteWaveform(String, Double, Double) 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(String, Double, Double).

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

See Also

Log in to get a better experience