Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW and Halcon

Thank you so much .Your code is helpful for me and i will learn it seriously.

0 Kudos
Message 21 of 70
(8,819 Views)

Thank you for sharing.It helped me a lot.

0 Kudos
Message 22 of 70
(8,188 Views)

Can I  display a halcon object(image) using LabVIEW  IMAQ image control ?

thank you for your reply.

0 Kudos
Message 23 of 70
(8,144 Views)

Yes, of course. Take a look at this example: https://forums.ni.com/t5/Machine-Vision/LabVIEW-and-Halcon/m-p/3680567#M50159 After you have read the resulting image out with MoveBlock, you have 2D array which could be passed to IMAQ ArrayToImage VI directly. Obviously you can do that with HImage anytime you want.

0 Kudos
Message 24 of 70
(8,136 Views)

HI dadreamer,

        The example tell me how to convert LabVIEW image to  HImage. But not ,I want to know  how to conver HImage to LabVIEW image.  Thank you for your reply.

0 Kudos
Message 25 of 70
(8,132 Views)

2019-07-09_14-19-39.jpg

0 Kudos
Message 26 of 70
(8,128 Views)

Wonderful  !You’ve helped me a lot. Thank you very much.

0 Kudos
Message 27 of 70
(8,104 Views)

Because LabVIEW.dll in CIN is specified by name, not by path, when I compile the program to exe, LabVIEW. DLL will not be copied to the compiled program folder together. When I run exe on another computer,  can't find LabVIEW. dll, the error of cannot find DLL will occur at the function of LabVIEW: DSNewPClr/ LabVIEW: MoveBlock/ LabVIEW: DSDisposePtr. Can you tell me which  path LabVIEW. DLL exists in the computer? I can manually copy it to another computer.

0 Kudos
Message 28 of 70
(7,964 Views)

"LabVIEW" is a reserved keyword in CLFN path setting and tells LabVIEW compiler to link against the current running labview.exe process. That is true for IDE mode. Regarding RTE (exe) mode, the main process loader links to lvrt.dll, which is a part of LabVIEW Run-Time Engine. So I assume, you should have LV RTE package installed on that machine, where you run your exe, and that will do the trick. No any additional libraries or file manipulations needed. Just keep in mind, that you need to install RTE of the same version, which LabVIEW had, when you built your program.

0 Kudos
Message 29 of 70
(7,938 Views)

I confirmed that LabVIEW Runtime 2017 (64 bit) was installed on the new computer, but the situation was the same. LabVIEW: DSNewPClr / LabVIEW: MoveBlock / LabVIEW: DSDisposePtr could not be found.

0 Kudos
Message 30 of 70
(7,920 Views)