Error grabbing images from a file camera

General Information

  • Product: N36
  • Serial Number: 246470
  • Ensenso SDK Version: 4.1.1033
  • Operating System: Windows
  • Data Attachments?

Problem / Question

detailled problem description
In Halcon12, I managed to open the framegrabber, to connect to the file camera, but not able to read the images. Always get the Error: adding Images while using grab_data.

Always get the Error: adding Images while using grab_data.

What exactly do you mean here? “adding Images” is the error message or is there any more information? Can you please check whether the Halcon output console contains more messages?

With adding images, I mean grabbing images. I attached the error appearing in halcon. The configuration is in german, that’s why I translated it in “adding images”.

“Invalid handle” means that either the handle is actually invalid or it cannot be used for grabbing images, because it does not represent a camera.

Did you run this on a handle that opened a camera? I.e. open_framegrabber with a CameraType other than 'Item' and a serial number specified (see the documentation).

If that doesn’t help, could you check whether there are additional messages in the Halcon output console? This is a separate window in Halcon, it looks like this.

Yes, of course. I actually use the Halcon Assistant to connect to the camera.
I was able to “connect” to it, but was unable to capture any images. But now that I have checked that output console, I am not sure if the connection is made (see attachment).

I create the camera using NxView as shown in the attached image.

Hi,

the input field next to Kameratyp in your Image Aquisition dialog contains the value Item but should contain Stereo.

Regards

Joel

putting stereo, the frame grabber does not open.

Hi,

the halcon interface has a special handling if the device identity – next to input field Gerät – can be transformed to a number. In this case it will be handled as an eeprom_id (see open_framegrabber — Halcon Interface - Ensenso SDK 4.1.1033 Documentation). The easiest way to avoid this behaviour is to recreate the file camera and give it another name that starts with a letter.

kind regards

Joel

Hi,
thank you very much for your help.
Idid what you suggested, but it isn’t still working. Some more error messages are desplayed.

also there is also something wrong with the camera’s name ID not being set up as I have named it. It has the serial number, why?
Maybe I do not have the right version of the NX Halcon library. I have installed NxLib version 4.1.1033 and UEyeSDK 4.96.3985 in my computer and in halcon the hAcqEnsenso-NxLib.dll recognises Rev. 6.6-Ensenso-4.1.976. Where can I download the correct dll for halcon?

the halcon dll version should correspond with the version of NxLib installed in your computer. I installed the Ensenso Version of the dll halcon and it worked.
My question for the support is: would not be the halcon dll library automatically installed when you install the Ensenso software?

Our installer copies the DLL to the system, but it does not know where your Halcon installation is. You have to copy it there manually. See the Halcon installation guide in the manual for more information.

This is probably not your problem, though. The interface should be compatible across a few patch versions. Hopefully @u.seitz or @n.rein can help with that.

Hi,
I am not sure, what it was, but I reinstalled the Ensenso software, than copied the dll in Halcon folder and it worked.
I cannot explain it, sorry.
Anyways, thank you very much for your help.

Kind regards,
Paola