Data Type Override is automatically enabled when upgrading Simulink Versions

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?

 Respuesta aceptada

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 comentarios

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?
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!

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Versión

R2019b

Preguntada:

el 7 de Ag. de 2020

Comentada:

el 12 de Ag. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by