Possible memory leak in data acquisiton toolbox using ni-daq 6229 BNC in continuous output mode
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Acquisition Toolbox Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!