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.
Best Answer