My model is named Test, and in Simulink's Code Generation -> Code Placement, the automatically generated file naming rules are as follows:
- Header file: $R$E
- Source file: $R$E
- Data file: $R_data
The generated files include:
- Test.c
- Test.h
- Test_types.h
- Test_private.h
When I replace $R with myModel, the generated files become:
- myModel.c
- myModel.h
- myModeltypes.h
- myModelprivate.h
I noticed that the underscore (_) disappeared in the last two files.
Is there any way to adjust the generated code file names so that they are different from the main model name?