Error -200229: Buffer Is Too Small to Fit Read Data in NI-DAQmx

Updated Oct 16, 2024

Reported In

Driver

  • NI-DAQâ„¢mx

Programming Language

  • C
  • C++

Issue Details

I'm attempting to read data from multiple channels, but when I run my C/C++ program I receive error -200229: buffer is too small to fit read data.

Solution

This error can occur when you increase the number of channels to read from, but do not increase the sample buffer size as well. To fix the issue, update the arraySizeInSamps parameter of the respective DAQmx Read function.