Using Simulink Coder-Generated Shared Object Libraries Inside MATLAB

1 回表示 (過去 30 日間)
Greg
Greg 2013 年 5 月 7 日
Is it possible to create a shared object library (.dll or .so file) with the Simulink Coder toolbox (specifically the ert_shrlib.tlc target) that can then be loaded and used inside of MATLAB with the loadlibrary function?
I've seen a lot of warnings that using .dll files created by the MATLAB Compiler is not supported, but this should be very different because the .dll files are created from C code and do not call the MCR.
I think I have the general workflow down, but I can't call the _initialize method of the model without getting a segfault that crashes MATLAB. I'm trying to figure out if the problem is just a mistake that I'm making in calling the function or if there is more fundamental wrong with what I'm trying to do.

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by