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

조회 수: 53 (최근 30일)
WJKIM
WJKIM 2026년 1월 8일 4:35
댓글: WJKIM 2026년 1월 21일 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.

답변 (1개)

Yashwanth
Yashwanth 2026년 1월 13일 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
WJKIM
WJKIM 2026년 1월 21일 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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by