Clear Filters
Clear Filters

Data Type Override is automatically enabled when upgrading Simulink Versions

20 views (last 30 days)
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?

Accepted Answer

Gouri Chennuru
Gouri Chennuru on 11 Aug 2020
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 Comments
Dhruv Mittal
Dhruv Mittal on 11 Aug 2020
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 on 12 Aug 2020
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!

Sign in to comment.

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!