S-Function Builder C++

1 回表示 (過去 30 日間)
Vishnu Teja Vithala
Vishnu Teja Vithala 2019 年 1 月 31 日
コメント済み: Mark McBroom 2024 年 8 月 9 日
I have C++ class with multiple methods and header file associated with it. I am unable to figure out (using s-function builder block) how to pass arguments to these functions which are the inputs to the s-function. In other words I am not able to figure out how to map the inputs of the s-function from simulink to the arguments of my class method.

回答 (1 件)

Mark McBroom
Mark McBroom 2019 年 2 月 2 日
Try this link.
  2 件のコメント
Sascha
Sascha 2024 年 8 月 9 日
The link is broken. I have the same application, are there any examples or documenation which covers this?
Mark McBroom
Mark McBroom 2024 年 8 月 9 日
The C Function block is now the recommended approach for calling external C++ code. See this example: Call C++ Class Methods Directly from a C Function Block - MATLAB & Simulink (mathworks.com)

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

カテゴリ

Help Center および File ExchangeAuthor Blocks Using S-Function Builder についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by