Why does my application's memory usage steadily increase when using the Image Acquisition Toolbox 1.5 (R14) to log images to disk?
이전 댓글 표시
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 National Instruments Frame Grabbers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!