MATLAB: Do I receive an error when attempting to connect to the Matrox hardware device using Image Acquisition Toolbox 1.9 (R14SP3)

cannotconnectImage Acquisition Toolboxmil8.0nonpaged

I am using the following code to connect to my Matrox image acquisition device:
vid = videoinput('matrox', 1,'M_NTSC_RGB);
set(vid,'TriggerRepeat',Inf);
vid.FrameGrabInterval = 5;
start(vid);
When I execute the code above, I receive the following error message:
??? Could not connect to the image acquisition device. Device may be in use.
Out of memory while allocating acquisition buffers. Try increasing the amount of
non-paged memory in the MIL driver.

Best Answer

As the error message suggests, this error can be resolved by increasing the amount of non-paged memory for your Matrox Imaging Library(MIL) driver.
It is recommended that MIL's non-paged, reserved memory be greater than the size of 4 incoming images. This value can be changed using Matrox's MIL Configuration utility, provided with MIL. For standard RS170 and CCIR monochrome formats, at least 2MB of non-paged memory is recommended. For standard NTSC and PAL color formats, at least 8MB is recommended.