Create DLL/LIB wrapper from C code for Matlab/LabView interfacing

11 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 C Shared Library Integration 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by