Do NI-DAQmx Arrays in C++ Have a Size Limit?

Updated Sep 21, 2018

Reported In

Driver

  • NI-DAQmx

Operating System

  • Linux

Programming Language

  • C++
  • C

Issue Details

I am developing an application using the NI-DAQmx API for C++ in Linux.  According to the API, I can use float64 arrays to store the data I read from my DAQ devices, but I would like to know, what is the maximum array size that I can use to store my data?

Solution

The maximum arrays size in C++ is determined by the amount of RAM memory your computer has.  C++ relies in the heap and the stack to manipulate this arrays internally, therefore, DAQmx C++ API is also limited by the amount of memory of your system has.  That being said, the maximum array size in C++ is as big as the heap can allow it to be. 

WAS THIS ARTICLE HELPFUL?

Not Helpful