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

Updated Jun 26, 2019

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, you can update one of the following parameters:
  •  Increase sampsPerChanToAcquire
  •  Increase arraySizeInSamps