フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Can I provide custom method/function to be included in c++ class generated by simulink

1 回表示 (過去 30 日間)
Martin Kragelund
Martin Kragelund 2019 年 9 月 4 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I would like to add an additional method to the c++ class generated by Simulink.
The use case is that I would like the application that the generated code is part of to provide an interface to a logger method which can be used in the generated code as well.

回答 (1 件)

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi 2019 年 9 月 23 日
When ‘Model Source’ block is used the code generator adds external code that you specify to the source file (model.c or model.cpp) that it generates.
The documentation for the above mentioned block can be found here.

この質問は閉じられています。

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by