Why does my application's memory usage steadily increase when using the Image Acquisition Toolbox 1.5 (R14) to log images to disk?
Afficher commentaires plus anciens
I have created a videoinput object using the Image Acquisition Toolbox's VIDEOINPUT function. I then created an AVI-file object using the AVIFILE function, and specified that the videoinput object log data to disk using this avi file. For example:
my_log = 'my_datalog.avi';
aviobj = avifile(my_log);
vid = videoinput('winvideo')
vid.FramesPerTrigger = inf;
vid.LoggingMode = 'disk';
vid.DiskLogger = aviobj;
start(vid)
Since I am logging data to disk and not to memory, I do not expect that my application will run out of memory. However, after a period of time, I receive the following error:
Unable to allocate memory for an incoming image frame. Use help imaqmem to modify the frame memory limit.
Additionally, I can see my memory usage increase when periodically calling the IMAQMEM function.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur National Instruments Frame Grabbers dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!