BufferingMode

Specify how memory is allocated

Description

BufferingMode can be set to Auto or Manual. If BufferingMode is set to Auto, the data acquisition engine automatically allocates the required memory. If BufferingMode is set to Manual, you must manually allocate memory with the BufferingConfig property.

If BufferingMode is set to Auto and the SampleRate value is changed, then the BufferingConfig values might be recalculated by the engine. Specifically, you can increase (decrease) the block size if SampleRate is increased (decreased). If BufferingMode is set to Auto and you change the BufferingConfig values, then BufferingMode is automatically set to Manual. If BufferingMode is set to Manual, then you cannot set the number of blocks to a value less than three.

For most data acquisition applications, you should set BufferingMode to Auto and have memory allocated by the engine because this minimizes the chance of an out-of-memory condition.

Characteristics

Usage

AI, AO, common to all channels

Access

Read/write

Data type

String

Read-only when running

Yes

Values

{Auto}

Memory is allocated by the data acquisition engine.

Manual

Memory is allocated manually.

See Also

Functions

daqmem

Properties

BufferingConfig

Was this topic helpful?