DaqStream.ConfigureOutputBuffer Method
- Updated2023-02-21
- 1 minute(s) read
Overrides the automatic output buffer allocation that NI-DAQmx performs.
Namespace: NationalInstruments.DAQmx
Assembly: NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302
Syntax
public void ConfigureOutputBuffer( long bufferSize )
Public Sub ConfigureOutputBuffer ( bufferSize As Long )
Parameters
- bufferSize
- Type: SystemInt64
The number of samples the buffer can hold for each channel in the task. Zero indicates that no buffer is allocated.
Exceptions
| Exception | Condition |
|---|---|
| DaqException | The NI-DAQmx driver returned an error. |
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. ConfigureOutputBuffer(Int64) 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.