How to suppress unwanted lines from ert generated code
古いコメントを表示
The header file of my generated code contains unused include statements as #include stdlib.h #include math.h #include stddef.h
Also it has following comments at the end of file
/*
* The generated code includes comments that allow you to trace directly
* back to the appropriate location in the model. The basic format
* is <system>/block_name, where system is the system number (uniquely
* assigned by Simulink) and block_name is the name of the block.
*
* Use the MATLAB hilite_system command to trace the generated code back
* to the model. For example,
*
* hilite_system('<S3>') - opens system 3
* hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
*
* Here is the system hierarchy for this model
*
* '<Root>' : cmp
* '<S1>' : cmp/Subsystem
* '<S2>' : cmp/Subsystem/Chart
*/
Can anybody have idea how to suppress unwanted lines from generated code.
Thanks.
4 件のコメント
Desiree
2011 年 8 月 10 日
Which version of MATLAB are you using? Most of the problems with unnecessary header includes added to the generated code should be fixed in newer versions. If it is still a problem you can always add a PostCodeGenCommand to manually remove unnecessary header includes.
About the comment: you have the option to remove all comments with the Comments pane in Configuration Parameters. This comment itself is explaining the code-to-model traceability which is available for Embedded Coder generated code. Are you using Embedded Coder or Simulink Coder?
TAB
2011 年 8 月 10 日
Kaustubha Govind
2011 年 8 月 10 日
Perhaps the above quoted comments can be eliminated by unchecking code-to-model highlighting? This option should be in Real-Time Workshop>Report pane.
TAB
2011 年 8 月 11 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Code Analysis and Tracing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!