NI-IMAQ Error -1074397067: The Requested Acquisition Window is Invalid

Updated Nov 29, 2023

Reported In


  • LabVIEW
  • Measurement & Automation Explorer (MAX)



Issue Details

I am able to snap and grab in Measurement & Automation Explorer (MAX) without any problems but whenever I snap or grab in LabVIEW I get the following error:

Error -1074397067 occurred at IMAQ (or IMAQ, IMAQ Grab, etc.)
Possible reason(s): NI-IMAQ: The requested acquisition window is invalid. 


LabVIEW usually returns this error because the IMAQ camera initialization requires different acquisition window parameters than are currently in the the camera file. For example, we would see this error when MAX sets a width value of 318 and the initialization call in LabVIEW sets the width to 320.

To address this, specify the acquisition windows attributes explicitly in LabVIEW, or make edits to the camera file.


Use property nodes  to manually set the acquisition window in LabVIEW. 
  1. The Acquisition Window property can be found using an IMAQ property node and selecting Acquisition Parameters >> Acquisition Window  >> and selecting the attributes that you need to change. 
    • In the image below, all four Acquisition Window attributes (Height, Left, Top, and Width) are adjusted; however, you may only need to reset a few of those to address the behavior.
  2. Manually set the Acquisition Window properties to those found in MAX.
Note: This solution will only work for the VI that you are working in; it does not reset the initialization values for the acquisition attributes at the camera file level. 


Camera File

For a more persistent solution, reset the proper window parameters in the camera file itself.  As opposed to the first solution, this solution would work for any VI that you create in LabVIEW.
  1. Save a backup copy of the camera file.
    • This is just in case something goes wrong when saving the camera file. Keeping a backup would allow you to continue working the camera even if some corruption occurred when editing.
  2. Open the camera file and view the acquisition window parameters.
    • For example, AcquisitionWindow (2, 0, 320, 240).  (Note that the actual parameters for your specific camera may vary.)
  3. Use a property node in the LabVIEW code to read the LabVIEW acquisition window initialization values.
  4. If the values in LabVIEW and in the camera file are different, change the values in the camera file to the values required by the IMAQ VIs. (for example, AcquisitionWindow (2, 0, 318, 240))
  5. Save the camera file.