When I codegen a Subsystem in a Simulink model, sometimes the names are changed in ways that don't make sense to me. Why does this happen? For example, if I have a Subsystem block called FooBar, the generated names of variables and such is FooBar*. If it is named Foo_Bar, the generated names are Foo_Bar0*. Why the 0? It isn't clear to me where this is coming from. Also, some inputs sometimes get changed. For example, an input named Baz, could be changed to y0. This makes scripting the builds challenging.
MATLAB: Does Simulink coder change (subsytem and input) names
matlab codersimulink
Related Question
- Add row/column names to a matrix
- Automate SFunction generation – Simulink workflow
- Loadlibrary produces invalid thunk code
- Is there a way to create a function from a model in Simulink, using Code Generation, so that this function can be used independantly as part of any other code project
- Printmat function for unknown number of rows
Best Answer