Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

imaqdx unknown error 80040217

Solved!
Go to solution

Hello,

 

I have an USB camera (Logitech c920), that I want to use in a LabVIEW program.

I have LabVIEW 2011 SP1 with Vision Developer 2011, and IMAQdx 4.3.5 installed on two Windows 7 64 bit computers.

The installs are as far as I know identical.

 

The camera works fine on both computers using third party software.

 

On first computer I can find the camera in NI MAX, and SNAP a photo.

 

On second computer I can find the camera, but SNAP gives me the error:

 

Error 0x80040217

An undetermined error code has been encountered.

 

On repoeated attempts to SNAP I get the error:

 

Error 0x80004005

An undetermined error code has been encountered.

 

If I try to create a LabVIEW program, where I use the "Snap.vi" I get the following error:

 

Error -2147220969 occurred at IMAQdx Configure Acquisition.vi
This error code is undefined.

 

I have checked that the version of "IMAQdx.llb" and "niimaqdx.dll" are the same.

 

Can anyone help me understand what the difference is between my two computers, and why Snap works on one and not the other.

 

Thanks for reading!

0 Kudos
Message 1 of 3
(7,391 Views)

Those are Windows error codes. Since your Logitech camera is supported by Logitech's drivers and DirectShow, IMAQdx is using that infrastructure to connect with the camera. Somewhere there an error is being generated. I'd suggest making sure you have Logitech's latest drivers installed. It also could be issues with differences in what system codecs are installed to support the camera's video modes. If all else fails, you may want to simply try using a different camera.

Message 2 of 3
(7,383 Views)
Solution
Accepted by Oksavik

Hello Oksavik,

 

BlueCheese is right that this is not an NI error but an error generated either from Windows or, more probably, from the Logitech driver. You stated in the other forum post that the camera works in your Logitech software but it's possible that NI MAX or LabVIEW are trying to load the camera with different initial settings which could be causing the issue. I found a few things that you could try:

 

This translated forum post went through most of the same troubleshooting steps I would recommend:

 

http://translate.google.co.in/translate?hl=en&sl=fr&u=http://forums.ni.com/ni/board/message%3Fmessag...

 

It ended up being that the USB cable was incompatible. The other steps listed there, reinstalling the driver, reinstalling IMAQdx, etc. would be good steps to try as well.

 

BlueCheese handles these types of errors all the time:

 

http://forums.ni.com/t5/Machine-Vision/Error-0x80040217-The-error-code-passed-into-imgShowError-is/m...

 

Some of his suggestions there would be interesting to investigate.

Collin D.
Software Product Manager
Message 3 of 3
(7,370 Views)