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.
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:
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?
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?