Data Type Override is automatically enabled when upgrading Simulink Versions

25 次查看(过去 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?

采纳的回答

Gouri Chennuru
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 个评论
Dhruv Mittal
Dhruv Mittal 2020-8-11
Thanks Gouri! That's very helpful.
One further question: is it possible to identify which blocks or signals in my model are affected by data type override, or is it a global effect?
Gouri Chennuru
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.
For more information refer to this link.
Hope This Helps!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Fixed Point 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by