Error -1074395992 When Saving an Image Programmatically

Updated Jan 21, 2020

Reported In

Software

  • Vision Development Module
  • LabVIEW

Driver

  • NI-IMAQ

Issue Details

I have a LabVIEW project where I snap an image, display it and then save it. However, whenever my LabVIEW program is at the "save image" step, it returns the error -1074395992. How can I fix it?

Solution

The error -1074395992 is mainly related to the file path configuration. When dealing with this error there are a couple of things to double-check:
  1. Check that you have permission to write to the directory specified in the file path of the IMAQ Write Image and Vision Info.vi.
  2. Make sure you're including the file path as a file extension you're saving (.JPG, .TIFF, .PNG). You can look at the Snap to File.vi shipping example (found in LabVIEW > Help > Hardware Input and Output > Vision Acquisition > NI-IMAQ > Snap and Save to File.vi):