Machine Vision

取消
显示结果 
搜索替代 
您的意思是: 

LabVIEW and Halcon

Thank you very much for the programming development of LV adjustable visionpro. Please give me your guidance

0 项奖励
61 条消息(共 70 条)
4,928 次查看

LabVIEW calls hdev program. Is there any routine in this regard? Please give guidance. Thank you

0 项奖励
62 条消息(共 70 条)
4,411 次查看

If I understand your message right, this example should more or less suit your needs: https://forums.ni.com/t5/Machine-Vision/LabVIEW-and-Halcon/m-p/4005482#M52741

0 项奖励
63 条消息(共 70 条)
4,400 次查看

This routine is not very clear. Is there a more clear routine for LabVIEW calling hdev script

0 项奖励
64 条消息(共 70 条)
4,394 次查看

Well, then maybe you could study some materials on HALCON-LabVIEW interaction, that MVTec sent me years ago. They are based on LabVIEW 2012 and HALCON 12.0, hence some information (as to the available operators, their names/prototypes or their behaviour) is likely outdated. Some useful pieces are there anyway, so check it out.

0 项奖励
65 条消息(共 70 条)
4,387 次查看
 

Uploading a program example here is very complicated by encapsulating function calls through Halcon. I want to call hdev script directly through LabVIEW, which will be simpler. Please take a look at this routine and give me some suggestions

0 项奖励
66 条消息(共 70 条)
4,380 次查看

I only know, how to call HALCON procedures (*.hdvp). Not sure, whether it's even possible to call *.hdev scripts outside of HDevelop, as some operators are often tied to its internal objects like the graphics window, so the counterparts should be used instead (if any). I would suggest to rewrite your script as a procedure to be called from LabVIEW or you could stick with traditional way of calling the operators with .NET nodes from the diagram (as done in your samples above). Of course, you can always reach MVTec or the local distributors to get assistance for your tasks (a valid license is required).

0 项奖励
67 条消息(共 70 条)
4,344 次查看

Hi dadreamer,

 

i know, this thread is some month old but i have to include some HALCON functions to my LabVIEW code now and so i´m trying to check out the combination of LV and HALCON. So I came to this really helpful thread.

Thank You for that!
Based on Your VI "LV_Image_To_Halcon_LV2014" I tried to convert this LV code to be able to work with 32 bit TrueColour-Arrays. I also used the VI "LV_Image_To_Halcon_LV2014_fixed_RGB", that works really fine. Unfortunately my Data ara not 3 × U8 arrays of R, G and . So i tried to use the function GenImageInterleaved. But it does not work. Do You have the time to figure out what the problem is with my VI.

 

Many thanks in advance!

 

And sorry for this ENGLISH 🙂 ...

 

 

Greetings, Marko

0 项奖励
68 条消息(共 70 条)
3,182 次查看

@Trinitatis wrote:
So i tried to use the function GenImageInterleaved. But it does not work.

Hi!

It works fine, if:

- colorFormat of GenImageInterleaved is set to 'bgrx';

- DispColor is used to display the image;

- GetImagePointer3 is used to retrieve the final image.

2022-11-28_20-24-30.jpg

2022-11-28_20-23-48.jpg

You may also zero imageWidth and imageHeight as per the documentation, if you don't need rescaling.

0 项奖励
69 条消息(共 70 条)
3,160 次查看

Hi,

 

I´m trying to do this tomorrow at the office.

 

Marko

70 条消息(共 70 条)
3,121 次查看