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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!