AllocateWaveform(string, int)
- Updated2025-10-14
- 1 minute(s) read
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
| Name | Type | Description |
|---|---|---|
| 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 | int | Specifies the number of samples to reserve in the onboard memory for the specified waveform. |
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The AllocateWaveform method was accessed after the associated NIRfsg object was disposed. |