Configuration parameters not editable or not available - R2024a

3 ビュー (過去 30 日間)
Djordje
Djordje 2024 年 10 月 16 日
コメント済み: Djordje 2024 年 10 月 21 日
Hello,
I am doing setup of Configuration Parameters.
Based on "Code Generation Advisor" output, I have to fix few parameters. Issue arises when I try to find them, they are not available.
I use ert_custom.tlc, which is based on the built-in ert.tlc. Only difference is that I removed suffix of the generated folder.
Original "Configuration Parameters" are stored in the dictionary which is linked to the model I use.
I am facing the following issues:
  • Build configuration -> grayed out, not changable
  • Combine signal/state structures (CombineSignalStateStructs) -> not available in the dialog
  • non-finite numbers (SupportNonFinite) -> not available in the dialog
  2 件のコメント
Hitesh
Hitesh 2024 年 10 月 17 日
Could you share the Simulink file along with the ert_custom.tlc file? This would allow me to reproduce the issue and investigate the root cause of it.
Djordje
Djordje 2024 年 10 月 17 日
Because of the confidentiality, I couldn't share original project.
But, in attachments, there is a simple project based on the original one in terms of the config structure, where the issue is reproducible.

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

採用された回答

Hitesh
Hitesh 2024 年 10 月 21 日
編集済み: Hitesh 2024 年 10 月 21 日
Hi Djordje,
The error you encountered is due to the ert_custom_issue.tlc file. The .tlc file that you have shared was having "rtwgensettings.BuildDirSuffix" set to empty which was causing these options to be disabled. You have to modify the " rtwgenSettings" structure to inherit options from the ERT target, then you will get "CombineSignalStateStructs","SupportNonFinite" and "Build configuration" options enabled. Refer to the below code:
rtwgensettings.BuildDirSuffix = '_ert_custom_issue_rtw';
rtwgensettings.DerivedFrom = 'ert.tlc';
rtwgensettings.Version = '1';
For more information on "Create ERT-Based, Toolchain Compliant System Target File" refer to the below MATLAB documentation,
  1 件のコメント
Djordje
Djordje 2024 年 10 月 21 日
Hello @Hitesh,
Thanks for your clarifications.
I made BuildDirSuffix empty in order to remove suffix of the directory where code is generated. This is requirement from the project, in order to have the history of the generated code independent of the type of generation.
I made the following changes, and now everything except "Build configuration -> grayed out, not changable" works. But, it is totally acceptable.
So, final changes in customized .tlc file are:
rtwgensettings.BuildDirSuffix = '';
rtwgensettings.DerivedFrom = 'ert.tlc';
rtwgensettings.Version = '1';
BR,
Djordje

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by