Simulink 2022b "Replace data types in generated code" does not change code generation for ert_shrlib

2 ビュー (過去 30 日間)
The generated header file always contains real_T, regardless of this setting, found in the "Data Type Replacement" tab. I have tried C99 and C89/90.
I need to be using doubles. Seems like a bug?
Thanks!
  3 件のコメント
Craig
Craig 2025 年 9 月 12 日
編集済み: Craig 2025 年 9 月 12 日
I would like no replacement to occur. In other words, double is replaced by double!
Fangjun Jiang
Fangjun Jiang 2025 年 9 月 12 日
This is available since R2023a, but not in R2022b.

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

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2025 年 9 月 12 日
You need to set up the replacement name.
You can choose to specify new data type names for some or all Simulink® built-in data types listed in the table. Specify the replacement name as one of the following:
  • A Simulink.AliasType object.
  • A Simulink.NumericType object.
  • The Simulink Name built-in data type name.
An error occurs, if:
  • A replacement data type specification is inconsistent with the Simulink Name data type.
  • The Simulink.AliasType object has the Data scope parameter set to Exported.

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by