Data Type Override is automatically enabled when upgrading Simulink Versions
12 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to upgrade a legacy simulink model from Matlab 2015b to a more recent version. When I upgrade it to any version more recent than 2016a (I've tried a variety between 2016a and 2019b), the model results change significantly and the diagnostic viewer notifies me that Data Type Override is active on the model.
- What exactly does this mean?
- How can I identify what Data Type Override is doing?
- How can I put a stop to it?
0 件のコメント
採用された回答
Gouri Chennuru
2020 年 8 月 11 日
Hi Dhruv,
Data type override, overrides the data types in your model. Whenever you are converting a model from floating point to fixed point it requires configuring fixed-point instrumentation and data type overrides.
Data type override simulates the model using double, single, or scaled double data types.
If in case you do not have Fixed-Point Designer software, you can still configure data type override settings to simulate a model that specifies fixed-point data types.
set_param('MyModel','DataTypeOverride','Double')
In order to disable it you can set, the data type override parameter to UseLocalSettings or Off.
set_param('MyModel','DataTypeOverride','Off')
Hope this Helps!
2 件のコメント
Gouri Chennuru
2020 年 8 月 12 日
Hi Dhruv,
There are blocks that are never affected by Data Type Overdide.
Some of them are, blocks with boolean or enumerated output data types, and blocks that are untouched by Data Type override by design (for example, lookup table blocks).
Depending on your application, you can preserve the data type of certain signals, for example, blocks that represent indices.
Hope This Helps!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Array and Matrix Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!