You are creating the second buffer in your application. DAQmx is not at fault here. You are wiring the output from the DAQmx Read VI to an auto-index tunnel on the While Loop. As your program runs this auto-index tunnel builds an array of
every value that was sent to it in every iteration of the loop. So as time goes on, this array gets bigger and bigger. Eventually you will run out of available memory.
You should look into other ways of streaming data out of a loop, such as using Queues. You could then have a background loop to handle any data analysis or display.
Jarrod S.
National Instruments