When generating code, is there a setting to turn type casting on/off?

51 visualizaciones (últimos 30 días)
WJKIM
WJKIM el 8 de En. de 2026 a las 4:35
Comentada: WJKIM el 21 de En. de 2026 a las 6:47
When generating code from the same Simulink file on two different computers, type casting is not generated on one computer.
This appears to be a setting somewhere other than the Simulink file itself.
Please review this inquiry and respond.

Respuestas (1)

Yashwanth
Yashwanth el 13 de En. de 2026 a las 9:39
Here is an article that provides information on Controlling Cast Expressions in Generated Code. This article should help resolve your issue:Control Cast Expressions in Generated Code - MATLAB & Simulink
  1 comentario
WJKIM
WJKIM el 21 de En. de 2026 a las 6:47
I tried all three casting modes, but the problem was the same.
(the "uint32_T" type casting wasn't created.)
And, as mentioned above, the Simulink file is identical, but the generated code is different.
Therefore, it appears to have nothing to do with "Configuration Parameters" of simulink.

Iniciar sesión para comentar.

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by