C++ and MATLAB Simulink tips for HWIL simulation software engineers
Friday, May 13, 2022
Simulink: Generating code without model version and date
When you generate code with Simulink, the generated header and source files will have model version and date in code comments. This results in version changes in your version control system even when you have not changed any logic. In order to avoid unnecessary version updates, you should comment out the "Model version" and "C/C++ source code generated on" sections in the ert_code_template.cgt file (Configuration Parameters > Code Generation > Templates > Code Templates).
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment