MATLAB: Do I receive the error message: “This application has failed to start because OLFG32.dll was not found” when using the Image Acquisition Toolbox

acquisitionfunctionsimageImage Acquisition Toolboximaqmil.dllolfg32.dlltoolbox

After installing the Image Acquisition Toolbox functions, the following error message pops up when I run any of the functions, such as IMAQHWINFO, IMAQSUPPORT or VIDEOINPUT:
MATLAB Command Window: matlab.exe - Unable To Locate Component
This application has failed to start because OLFG32.dll was not found.
Reinstalling the application may fix this problem.
When I click OK another dialog appears:
MATLAB Command Window: matlab.exe - Unable To Locate Component
This application has failed to start because MIL.dll was not found.
Reinstalling the application may fix this problem.

Best Answer

You may work around the problem by renaming or removing the adaptor dlls that you are not using.
For example, if you are using "winvideo", rename the mwmatroximaq.dll and mwdtimaq.dll files in
$MATLAB\toolbox\imaq\imaqadaptors\win32\
to mwmatroximaq.dl_ and mwdtimaq.dl_.
If you are attempting to use a Data Translation's board, and are still experiencing errors associated with the OLFG32.dll, be sure to install the Data Translation SDK. Installing the Data Tanslation drivers only will not install this DLL on your system. This is a known issue with the Data Translation installer.