RfsgArb.AllocateWaveform Method
- Updated2025-02-03
- 1 minute(s) read
Rfsg
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
Exceptions
Exception | Condition |
---|---|
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.