フィルターのクリア

Shared Utilities template file

4 ビュー (過去 30 日間)
Melvin Aguirre
Melvin Aguirre 2011 年 6 月 10 日
I am using Matlab 2010a along with simulink and RTW to generate C code and I'd like to modify the comments being generated in the Shared utility files (header files). Specifically I'd like to remove the full path of the file from the generated comments. Is there a specific template that I need to change?

回答 (2 件)

Kaustubha Govind
Kaustubha Govind 2011 年 6 月 10 日
Typically, the CGT files associated with the target can be modified to customize comments is generated code. However, I'm not sure if the same templates apply to the Shared Utilities files also.
  2 件のコメント
Melvin Aguirre
Melvin Aguirre 2011 年 6 月 10 日
The only reference I can find to the Shared Utilities in any of the CGT files help is the Shared Utility Function Banner (<SharedUtilityBanner> </SharedUtilityBanner>) but this appears to apply only to the banner written before the utility function implementation.
Kaustubha Govind
Kaustubha Govind 2011 年 6 月 12 日
You could try contacting Tech Support to see if they can suggest a solution. I'm not sure that such functionality exists at this point. If Tech Support confirms that there isn't, you could potentially write a PERL script to do this for you in the after_tlc hook in the STF_make_rtw_hook.m file.

サインインしてコメントする。


MarkB
MarkB 2011 年 6 月 13 日
I'm not sure if it's possible, but I would recommend looking at the customized file banners. I believe that there are different sections for "regular" code vs. shared utilities.

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by