Automotive and Embedded Networks

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

canoe labview

Hello 

 

Is someone know if we can control Labview functions with CAPL node of Canoe? I have to realize a machine vision which is"controlled" by an XML file (interpreted by Canoe) which calls CAPL functions.

 

When I create and launch a command line with a CAPL script which is normally able to launch a labview function, Labview software is launched but some error windows appear when the function tries to start:

 

example: error.png

 

Note: LABview.exe and function.vi are in the same working directory.

 

I hope I have not too painful explained my problem, English is not yet a strength for me 高兴表情

 

Thanks

 

0 项奖励
1 条消息(共 4 条)
8,170 次查看

Hi Flouo,

 

Have you try to run the .exe or the vi without canoe but just using labview ?

 

Best regards.

0 项奖励
2 条消息(共 4 条)
8,114 次查看

Hey flouo,

 

I'm unsure that your script correctly calls a VI : judging by the dialog box in your post, the path is not correct. Make sure you're opening/running a VI with the appropriate command.

 

Also, CAPL nodes and LV can either communicate with :

- UDP/TCP between a CAPL node and an opened VI that handles the UDP/TCP communication (set the UDP server to be CANoe and LV to be the client, for instance)

- ActiveX. LabVIEW can be automated from a CAPL node using ActiveX, or vice-versa (LV can control CANoe). If you wish to control LV from CANoe (in a CAPL node), it will be pretty much the same as this article : https://forums.ni.com/t5/Example-Code/Calling-a-LabVIEW-VI-from-Visual-Basic-through-ActiveX/ta-p/39...

 

Regards,

 

Eric M. - Senior Software Engineer
Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer
Neosoft Technologies inc.

0 项奖励
3 条消息(共 4 条)
8,035 次查看

Hi, and to begin thank you both for your answers

 

I'm back on my project after a break period and I now manage to run the ".exe" but today this solution is not the one that best suits my needs and so I head to your solution, Eric. I would use ActiveX functions to control Labview from CANoe.

 

It let me more change possibilities and it's easier to modificate a ".vi" than update a ".exe".

 

I think I will be back here to request more help because even if you join me a discussion about ActiveX functions to link VBA and Labview I don't really know how these functions work (Labview side and CAPL side). It will be complex for a rookie but I hope to reach my goals alone, if I can 高兴表情

 

BR

 

0 项奖励
4 条消息(共 4 条)
7,882 次查看