LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use a matlab DLL in LabVIEW Call Library Function Node?

 

Hi, guys. I'm brandnew labview user.

MATLAB R2017B (latest MCR), LabVIEW 2015, Visual Studio 2017 in use.


I created a DLL using m.file that I wrote in MATLAB. I'm trying to call this DLL using the LabVIEW Call library function node. I've seen a lot of community posts, but they are too old, and they do not work properly or are not what I want.

 

As far as I know, MATLAB compilation produces files such as .c and .dll .lib .h and so on. And I can not bring up this DLL directly with the LabVIEW Call library function node (I know how to use the Call Library Function Node).


Because a MATLAB DLL has a mxArray type. So I have to create the wrapper dll separately. Am I right?

when I call the dll, there are function names that -Initialize, -InitializeWithHandlers, -PrintStackTrace, -Terminate. and I don't know what this mean

 

and my question is,
Q) What is a wrapper dll?
And how can I make a wrapper dll?
finally, How can I run a dll created in MATLAB in LabVIEW?

 

thanks, in advance.

0 Kudos
Message 1 of 1
(2,099 Views)