MATLAB: Does AVI logging not work for the Image Acqusition Toolbox 1.0 (R13.0.1+)

acqusitionaviavi.dllimageImage Acquisition Toolboxinvalidislogging

I am trying to use AVI file logging with the following code:
file = avifile('D:\imaq.avi');
obj = videoinput('winvideo');
obj.LoggingMode = 'disk';
obj.DiskLogger = file;
start(obj)
But when I do, I receive the error:
??? MATLAB AVI.DLL is invalid. The Image Acquisition Toolbox may need to be reinstalled.

Best Answer

This error message occurs when MATLAB 6.5 (R13.0.1) has been reinstalled, but the Image Acquisition Toolbox 1.0 (R13.0.1+) has not. The Image Acqusition Toolbox 1.0 (R13.0.1+) ships a modified avi.dll file that enables its AVI file logging capabilities. If MATLAB is reinstalled without reinstalling the toolbox, the avi.dll version that the toolbox requires is no longer available. In order to prevent this error, reinstall the Image Acquisition Toolbox 1.0 (R13.0.1+).