How to use Simulink generated DLL into Matlab script?

1 回表示 (過去 30 日間)
Geetanshu Chhajed
Geetanshu Chhajed 2023 年 1 月 28 日
コメント済み: Geetanshu Chhajed 2023 年 7 月 21 日
I have generated DLL from a simulink model. But now I want to use this model DLL into the m script using load command. But here in DLL i am not even able to see which is the function and how i can give input arguments to it. Please consider the attached file for reference. How should i proceed further in this?

回答 (1 件)

Mark McBroom
Mark McBroom 2023 年 1 月 30 日
You should be able to call functions in DLL from MATLAB using either loadlibrary() https://www.mathworks.com/help/matlab/ref/loadlibrary.html
Thanks.
Mark.
  1 件のコメント
Geetanshu Chhajed
Geetanshu Chhajed 2023 年 7 月 21 日
No it does not work. I called using loadlibrary function as well. I am not even getting how to give input to this dll as it always gives libpointer as answer when used calllib function.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by