06-13-2011 06:38 PM
I have C++ functions that have classes (Object Oriented programming). I want to make dll libraries of these functions in C++ and call these functions one at a time in Labview. I have been advised not to use "call library function node" procedure. Instead make a com based dll in c++ and call it in Labview, how that works? I will appreciate if somebody who has that knowledge gives some concrete details.
Thanks!
khurshe
06-14-2011 04:59 AM
Hi khurshe,
The "optimal" solution is highly depends on your task. I would write it as following:
1) Do you need a graphical output from your functions (for example custom graph) ?
[yes] use .NET/ActiveX
[no] use C wrapper
2) Do your application cross platform? - if yes use a C wrapper.
In general COM solution is a much more headache then a C wrapper.
If you provide more details, we would available to help you better.
Michael.
06-15-2011 11:37 AM
We wrote a class called Testclass A in Borland C++ that we want to call from Labview in "call library function". and to do this we wrote a c_wrapper for Testclass A. But it does not work in "call library function node".After configuring and attaching the indicators and controls to "call Library function node" the Labview array remains broken and clicking on the broken arrow says " function not found in the dll library. I have attached the code and header file for kind attention for anybody who can help.
Thanks!
Khurshe