Skip to content

NI DAQMX Internal Buffer Configuration

Greg Stoll edited this page Sep 6, 2021 · 1 revision

Internal Buffer Configuration

DAQmxCfgInputBuffer

int32 DAQmxCfgInputBuffer (TaskHandle taskHandle, uInt32 numSampsPerChan);

Purpose

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

Parameters

Input
Name Type Description
taskHandle TaskHandle The task used in this function.
numSampsPerChan uInt32 The number of samples the buffer can hold for each channel in the task. Zero indicates no buffer should be allocated. Use a buffer size of 0 to perform a hardware-timed operation without using a buffer.

Return Value

Name Type Description
status int32 The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error.

DAQmxCfgOutputBuffer

int32 DAQmxCfgOutputBuffer (TaskHandle taskHandle, uInt32 numSampsPerChan);

Purpose

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

Parameters

Input
Name Type Description
taskHandle TaskHandle The task used in this function.
numSampsPerChan uInt32 The number of samples the buffer can hold for each channel in the task. Zero indicates no buffer should be allocated. Use a buffer size of 0 to perform a hardware-timed operation without using a buffer.

Return Value

Name Type Description
status int32 The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error.

Table of Contents

Internal Development

Creating and Setting Up a gRPC Server

Server Security Support

Creating a gRPC Client

gRPC Client Examples

Session Utilities API Reference

Driver Documentation

gRPC API Differences From C API

Sharing Driver Sessions Between Clients

C API Docs
NI-DAQmx
NI-DCPOWER
NI-DIGITAL PATTERN DRIVER
NI-DMM
NI-FGEN
NI-FPGA
NI-RFmx Bluetooth
NI-RFmx NR
NI-RFmx WCDMA
NI-RFmx GSM
NI-RFmx CDMA2k
NI-RFmx Instr
NI-RFmx LTE
NI-RFmx SpecAn
NI-RFmx TD-SCDMA
NI-RFmx WLAN
NI-RFSA
NI-RFSG
NI-SCOPE
NI-SWITCH
NI-TCLK
NI-XNET
Clone this wiki locally