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.
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.
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.
"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.
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.