Load a .dll file in Simulink
56 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone,
Like mention the title I would like to know if is it possible to load a .dll file in Simulink (with a S-function for example). I'm a beginner at Simulink so please be as specific as you can.
Best regards
Vithuran
0 件のコメント
回答 (1 件)
Kaustubha Govind
2013 年 9 月 30 日
編集済み: Kaustubha Govind
2013 年 9 月 30 日
Yes, this should be possible. I would recommend that you first achieve the interface using plain MATLAB code. For help, see Calling Functions in Shared Libraries. Once you have written the MATLAB code to call into your DLL, you can then place the same code in a Level-2 MATLAB S-function to create a Simulink block for it.
2 件のコメント
Kaustubha Govind
2013 年 10 月 1 日
Not sure, but I think people usually rig up their own header file with the function declarations of the functions exported from the DLL (please feel free to create a new question for this). Alternatively, you might be able to use C code to call into the library.
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!