Error -1074396154: Image Is Not Large Enough for The Operation

Updated Jun 6, 2025

Reported In

Software

  • LabVIEW

Driver

  • Vision Acquisition Software

Issue Details

My NI vision program uses an IMAQ Create VI to allocate memory to my image acquisition. However, when I try to pass the image reference to another function such as the IMAQdx Get Image VI, LabVIEW throws the following error:
-1074396154 Image Is Not Large Enough for The Operation

How can I troubleshoot this error?

Solution

A common solution to this problem is to call the IMAQ SetImageSize VI after the IMAQ Create VI in order to set the x and y resolution values of the expected image.

In the example below, the IMAQ SetImageSize VI should be called prior to calling the IMAQdx Get Image VI as shown. The X Resolution and Y Resolution are set to the appropriate values for this application; the values for your specific application may differ.
 

 
Other example situation you will encounter this error is when you try to do pattern matching. If you create template image and the target area you specify in your target picture is smaller than template image size, you will encouter this error.
For example, you can specify the target area by input specific coordinates information as Operational Rectangle in IMAQ Match Color Pattern.vi.