Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

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 Smiley Happy

 

Thanks

 

0 Kudos
Message 1 of 4
(8,178 Views)

Hi Flouo,

 

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

 

Best regards.

0 Kudos
Message 2 of 4
(8,122 Views)

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 Kudos
Message 3 of 4
(8,043 Views)

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 Smiley Happy

 

BR

 

0 Kudos
Message 4 of 4
(7,890 Views)