NIFGEN_ATTR_STREAMING_SPACE_AVAILABLE_IN_WAVEFORM

NI-FGEN C Function

NIFGEN_ATTR_STREAMING_SPACE_AVAILABLE_IN_WAVEFORM

Specific Attribute

Data
type
Access Applies to Coercion High Level Functions
ViInt32 RO N/A None None

Description

Indicates the space available (in samples) in the streaming waveform for writing new 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-FGEN to return an error, as NI-FGEN 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.

Used in conjunction with the NIFGEN_ATTR_STREAMING_WAVEFORM_HANDLE or NIFGEN_ATTR_STREAMING_WAVEFORM_NAME attributes.