Load .Net Assembly to use in Simulink
2 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I am trying to use another application whose API is only availble in .Net with Simulink.
I can load the assembly and use the methods using Matlab Interpreted function block, but it is quite slow and will be deprecated soon.
Embedded Matlab function doesn't support NET.addAssembly.
What are my options?
I suppose I can try to wrap the C# dll with C++ and create a s-function but this would be last resort.
0 件のコメント
回答 (1 件)
Animesh
2023 年 8 月 14 日
Hello Pavel,
You can use InitFcn, PreLoadFcn or PostLoadFcn Callbacks to run your MATLAB Code to load the assembly or you can create a C++ S-Function to wrap the C# DLL.
To read more about Callbacks: - https://www.mathworks.com/help/simulink/callback-functions.html
Thanks,
Animesh Jha
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で .NET Methods in MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!