Info
此问题已关闭。 请重新打开它进行编辑或回答。
Can I provide custom method/function to be included in c++ class generated by simulink
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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.
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!