Integrating C# code into Simulink?

15 ビュー (過去 30 日間)
Mark Golberg
Mark Golberg 2021 年 3 月 16 日
コメント済み: Mark Golberg 2021 年 3 月 18 日
Hello,
I know I can take C / C++ code and add it as a "black box" to my Simulink model.
Can I do it with C# (C sharp) code as well?
Best Regards,
Mark

回答 (1 件)

Rishik Ramena
Rishik Ramena 2021 年 3 月 18 日
As of now, Simulink only takes up custom blocks which integrate with C/C++ code. For further details or if you need help regarding this integration, have a look here.
  1 件のコメント
Mark Golberg
Mark Golberg 2021 年 3 月 18 日
Can I compile my c# function to dll file with dot NET frame work, and then access this "dll function" via matlab simulink?
I mean, supposably I have a super simply function written in c# doing:
f(x) = x+2
can I "convert" (compile) it do DLL file... and afterward is it possible to somehow pass an input variable of x=7 to this new compile DLL and receive an output of 9?

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

カテゴリ

Help Center および File ExchangeApplication Deployment についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by