Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Image Ref from dll

Hi, I have some problem to pass image reference to and from a dll.

 

I developed a vision library and I created a dll. Inside the dll I can do any operation on the images. The problem occurres when I try to reach the image standing out of the dll.

 

Basically, inside the dll there is a function for allocating buffer (IMAQ Create). The driver for the digital camera is not included into the dll, then I have the need to write in the buffer allocated from an external VI (digital camera driver).

I tried to get out the image reference from the dll but it doesn't work.

 

Does anybody knows how I can do?

 

Thanks a lot.  

0 Kudos
Message 1 of 4
(2,760 Views)

Hi,

 

Is your dll a LabVIEW dll, or a C dll?

It's not clear to me exavtly what you are trying to do. I understand that your dll creates an image, and you want to access the image that is created in the dll outside of the dll.

In which language do you call your dll from?

 

-Christophe

0 Kudos
Message 2 of 4
(2,752 Views)

Hi, my dll is developed in LabView2009.

 

I tried to make an example that get the reference from a dll.

 

Basically the dll creates a buffer and load the Demo.jpg. The Demo.vi call the dll and try to display the image. During the execution of the unflatten to string the vi hangs.

 

I hope it can halp to understand better the issue.

 

Thanks a lot.

0 Kudos
Message 3 of 4
(2,747 Views)

Did anyone give a glance to the example?

 

Thanks.

0 Kudos
Message 4 of 4
(2,734 Views)