Overrides the automatic input buffer allocation that NI-DAQmx performs.

Syntax

Namespace: NationalInstruments.DAQmx

public void ConfigureInputBuffer(long bufferSize)

Remarks

Set bufferSize  to 0 to perform a hardware-timed operation without using a buffer.

The NI-DAQmx driver does not determine if the requested settings are possible until the task is verified. ConfigureInputBuffer(long) does not throw an exception for parameter values that are not compatible with your hardware or other settings in your task. To determine if all of the settings for a Task are valid, you must verify the task by starting the task, either with Start or by reading from or writing to the task, or by calling Control(TaskAction) with Verify.

Parameters

NameTypeDescription
bufferSizelong

The number of samples the buffer can hold for each channel in the task. Zero indicates that no buffer is allocated.

Exceptions

TypeDescription
NationalInstruments.DAQmx.DaqException

The NI-DAQmx driver returned an error.