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

Updated Jan 3, 2018

Reported In

Software

  • LabVIEW Full

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 error 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 an IMAQ SetImageSize function after the IMAQ Create function 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.
 

WAS THIS ARTICLE HELPFUL?

Not Helpful