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.