Is there a way to define the name of generated C++ classes when using Simulink Coder with an slrealtime target?

1 次查看(过去 30 天)
When I generate C++ code for a model normally (lets called it "testcoder") - the generated C++ classes and files are named using the model name, e.g. 'testcoder.h', 'testcoder_M' etc. Is there a way to override this? For context, I want to write a C++ wrapper that can be applied to arbitrary slrealtime models with a small MATLAB script, but currently the C++ will break as there are references to hardcoded file names (e.g. #include "testcoder.h" and accessing the MMI of the main model class - testcoder_M).

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by