RfsgArb.AllocateWaveform Method
- Updated2024-05-08
- 1 minute(s) read
RfsgArbAllocateWaveform Method
Allocates onboard memory space for the waveform.
Namespace: NationalInstruments.ModularInstruments.NIRfsg
Assembly: NationalInstruments.ModularInstruments.NIRfsg.Fx40 (in NationalInstruments.ModularInstruments.NIRfsg.Fx40.dll) Version: 2022
Syntax
public void AllocateWaveform( string name, int sizeInSamples )
Public Sub AllocateWaveform ( name As String, sizeInSamples As Integer )
Parameters
- name
- Type: SystemString
Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. - sizeInSamples
- Type: SystemInt32
Specifies the number of samples to reserve in the onboard memory for the specified waveform.
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.