Why do I receive an error when attempting to connect to my Matrox

A
abdullah_akhtar · Feb 11, 2022 · 1.9K views
Question
Why do I receive an error when attempting to connect to my Matrox hardware device using Image Acquisition Toolbox 1.9 (R14SP3)? 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.  
Expert Answer
Profile picture of Kshitij Singh
Kshitij Singh PhD Expert
Answered Aug 21, 2026
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.
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!