08-13-2013 07:23 AM
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
12-03-2015 01:55 PM - edited 12-03-2015 01:56 PM
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
12-03-2015 03:29 PM
@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