NIRFSG_ATTR_STREAMING_SPACE_AVAILABLE_IN_WAVEFORM

NI-RFSG C Function

NIRFSG_ATTR_STREAMING_SPACE_AVAILABLE_IN_WAVEFORM

Data
type
Access Coercion High Level Functions
ViInt64 RO None None

Description

Indicates the space available (in samples) in the streaming waveform for writing new data. This attribute also reports the available space in the waveform (allocated size minus previously written data). During generation, this available space may be in multiple locations with, for example, part of the available space at the end of the streaming waveform and the rest at the beginning. In this situation, writing a block of waveform data the size of the total space available in the streaming waveform causes NI-RFSG to return an error, as NI-RFSG will not wrap the data from the end of the waveform to the beginning and cannot write data past the end of the waveform buffer.

To avoid writing data past the end of the waveform, write new data to the waveform in a fixed size that is an integer divisor of the total size of the streaming waveform.

To set this attribute, the NI-RFSG device must be in the Generation state.

Supported Devices: NI 5672