Possible memory leak in data acquisiton toolbox using ni-daq 6229 BNC in continuous output mode

1 vue (au cours des 30 derniers jours)
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!

Réponses (0)

Catégories

En savoir plus sur Data Acquisition Toolbox Supported Hardware dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by