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

Updated Apr 18, 2023

Reported In

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.


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.