LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

matlab-labview

can anyone poste an example of working code solution ? I mean the m-file, the dll , dll wrapper code, the VI caller ,......just all files which are needed

0 Kudos
Message 11 of 13
(454 Views)

Just a few things charlie87 mentioned in an e-mail:

..., you cannot directly call Matlab C  dlls from LabVIEW. It is because Matlab is using different data types called MXARRY.

 

You need to write a wrapper dll which transform the data types between M and LV. It is very painfull, but it is possible.

 

I recommend you to search in "lavag.org". ...

 

Anyway, I suggest you to try generate .NET dll in Matlab (you need .NET Buildred Matlab Tool) instead of C/C++ dll.

The .NET dll can be called directly from LabVIEW without any custom wrapper....

 

Thank you for this summary about the topic.

 

I have searched in the NI User Forum and in the User forum https://lavag.org, but I have still not found an up-to-date

step-by-step tutorial for Dummy "box-programmers".

 

Does someone has a recommendation for such a tutorial?

 

Stefan

0 Kudos
Message 12 of 13
(391 Views)

@stefan! wrote:

Anyway, I suggest you to try generate .NET dll in Matlab (you need .NET Buildred Matlab Tool) instead of C/C++ dll.



Sorry, I am quite sure that there is a typo: I think, it is the Matlab ".NET Builder Tool/Toolbox" and this is probably the same as the "MATLAB Compiler SDK". Stefan

0 Kudos
Message 13 of 13
(381 Views)