Machine Vision

Showing results for 
Search instead for 
Did you mean: 

LabVIEW and Halcon

0 Kudos
Message 41 of 47

Thank you for your reply.

0 Kudos
Message 42 of 47

Dear dadreamer:

Thank you for the demo of running HDVP file directly in LabVIEW. I have gained a lot.But I still don't understand, how to put the LabVIEW in the acquisition of images to HDVP file, I checked by ProcCall SetInputIconicParamObject ()

The image variable is passed into the HDVP file, but I don't know how to implement it. Could you help me? Thank you.


0 Kudos
Message 43 of 47

Hi, cmbd!

You go in the right direction. I just checked it on this very simple procedure:

scale_image_range ( Image : ImageScaled : Min, Max : )

So, here we should pass one iconic input parameter and two control input parameters and receive one iconic output parameter.

This is how it works for me:

Download All
0 Kudos
Message 44 of 47
Thank you very much for your reply. You are really wonderful. You have solved the problem that has bothered me for a long time. I believe this is also a problem for many engineers who want to call Halcon directly with LabVIEW. Thanks again, I will study your demo well.
0 Kudos
Message 45 of 47

dear dadreamer! I also use labview to call halcon, first of all thank you for your image conversion algorithm, I used it in my project. But at present I have a big trouble. After labview calls halcon, the memory usage in my application gradually increases, but it will not increase after reaching 1GB. Why is this?



0 Kudos
Message 46 of 47

Hi, ljq!

Right now I don't have a clear answer for you, but here are some questions to figure out the reasons behind your problem.

1. Are you freeing all the memory allocated for HALCON objects with Dispose invoke node (if available) and with Close Reference onwards?

2. Are you working with very large images (with resolution of 32k x 32k pixels)? If yes, then you should use halcondotnetxl.dll instead of halcondotnet.dll.

Then it would be good to show us your sample code, where you can stably reproduce the issue you've described. Is my basic example from this thread working fine for you or does it introduce the memory leak as well?

0 Kudos
Message 47 of 47