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:
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
Hi Flouo,
Have you try to run the .exe or the vi without canoe but just using labview ?
Best regards.
Aurélien Corbin
National Instruments France
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.
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