Create DLL/LIB wrapper from C code for Matlab/LabView interfacing
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello everyone.
I want to build with Matlab Compiler SDK a DLL that can be called from LabView. As you may now, the library generated by the Matlab Compiler SDK (lets call it 'my_dll.dll'/'my_dll.lib') is not directly callable by LabView, as it uses non-standard data types ( mxArrays ).
Thus, my plan is to generate in C a wrapper code. This wrapper code, whenever it is called, will execute the needed routines of the Matlab Runtime Engine and call the functions generated in 'my_dll.dll'. This wrapper code would be basically extremely similar to any other executable or application using the previously generated DLL.
However, in order to call this C wrapper code from LabView, I would have to generate a new DLL, and here comes the problem, since I do not find the way to do this. The following picture summarizes what I want to do.

So, is that possible to do? Do I have the wrong approach? Is there any way to do something similar?
PD: before suggesting other options like using MathScript/Matlab Script in LabView, or using Matlab Coder, those options were discarded for several other reasons.
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu C Shared Library Integration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!