LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using DLL from Matlab Coder in Labview

Hi,

I'm trying to use DLLs created from Matlab Coder in Labview and it's not working. I've read mutiple post trying to better understand the issue. The main reference I'm using seems to point out the main problem being :

''MATLAB natively exposes all of its function parameters (including scalars, strings, etc.) with the mxArray type, as seen in the mlf function prototype screenshot from before. This is not a native C type, which is what LabVIEW knows how to interface with. LabVIEW does not know what to do with these types, which will pose problems for us later.''

 

https://forums.ni.com/t5/Example-Program-Drafts/Walkthrough-for-Creating-a-MATLAB-DLL-That-Can-Be-Ca...

 

I'be tried his walkthrough but still ended up with this error when everything was suppose to be working: 

mclmcrrt9_1.dll is missing

 

Now I'm out of ideas. I was wondering if anyone was experience in using DLL from Matlab Coder in Labview. Ultimately, I would like to call one function (that called other Matlab functions) that takes as input single precision arrays.

 

As an an example, I've added what Matalb gives me for the DLL I create that sums two double precision 2D arrays.

 

Thank you and have a nice day.

RMT

0 Kudos
Message 1 of 3
(2,460 Views)

Hello,

 

What versions and bitness of LabVIEW and MathWorks, Inc. MATLAB® are you using?

Also, is the missing DLL located on the computer and LabVIEW just cannot find it? If so, what directory is the missing DLL located in?

Niki Budgell | Product Planner - SW Management | NI
Message 2 of 3
(2,409 Views)

64bit in both case.

I have no idea what that DLL is. It was mention nowhere in the walkthrough.

0 Kudos
Message 3 of 3
(2,405 Views)