Possible memory leak in data acquisiton toolbox using ni-daq 6229 BNC in continuous output mode
2 views (last 30 days)
Show older comments
I am using the Data Acquisition Toolbox to communicate with an NI 6229 USB BNC board in an effort to output analog data for a simulation. I am using the session-based interface to output 3 channels at 625 kHz (maximum sample rate that the board allows). I am queuing up 4 seconds of data at a time. I use a callback function to create the next 4 seconds of data when the number of samples remaining reaches a certain level. The board is running in continuous mode and I clear the data variable "x" after I call "queueOutputData(x)." The board outputs data for about 12 seconds and then Matlab runs out of memory. It seems like Matlab or the DAQ toolbox is holding onto the data after it gets queued and passed onto the board, because Matlab's available memory is reduced by the amount of data that has been queued after every call to queueOutputData. A call to "clear" does not free this memory. This is an internal Matlab problem - there is no problem with memory management on the D/A board itself. I am running with Matlab 7.14 and DAQ Toolbox 3.1. If anyone has experience with this issue and can help, I would appreciate it. Thanks!
0 Comments
Answers (0)
See Also
Categories
Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!