niRFSG_SetArbWaveformNextWritePosition
- Updated2025-02-03
- 2 minute(s) read
niRFSG_SetArbWaveformNextWritePosition
C Function Prototype
ViStatus niRFSG_SetArbWaveformNextWritePosition (ViSession vi, ViConstString name, ViInt32 Relative_To, ViInt32 Offset);
Purpose
Configures the start position to use for writing a waveform before calling the niRFSG_WriteArbWaveform function. This function allows you to write to arbitrary locations within the waveform. These settings apply only to the next write to the waveform specified by the name input of the niRFSG_AllocateArbWaveform function or the niRFSG_WriteArbWaveform function. Subsequent writes to that waveform begin where the last write ended, unless this function is called again.
![]() |
Note If you use this function to write the waveform that is currently generating, an undefined output may result. |
Supported Devices: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860
Parameters
Input | ||||||
Name | Type | Description | ||||
vi | ViSession | Identifies your instrument session. The ViSession handle is obtained from the niRFSG_init function or the niRFSG_InitWithOptions function and identifies a particular instrument session. | ||||
name | ViConstString | Specifies the name of the waveform. This string is case-insensitive and alphanumeric, and it cannot use reserved words. | ||||
relativeTo | ViInt32 | Specifies the reference position in the waveform. The position and offset together determine where to start loading data into the waveform.
Defined Values:
|
||||
offset | ViInt32 | Specifies the offset from the relative to parameter at which to start loading the data into the waveform. |
Return Value
Name | Type | Description | ||||||||
status | ViStatus | Returns the status code of this operation. The status code either indicates success or describes an error or warning condition. Examine the status code from each call to an instrument driver function to determine if an error occurred.
To obtain a text description of the error code, call the niRFSG_GetError function. The general meaning of the status code is as follows:
|
||||||||