필터 지우기
필터 지우기

Can I force Stateflow to use uint16_T instead of uint8_T in generated code?

조회 수: 1 (최근 30일)
William Chavez
William Chavez 2013년 10월 7일
편집: Muthukumar Ganesan 2022년 8월 13일
We have a requirement not to use int8/uint8 in code. Is there a way to make code generated from Stateflow use uint16 (or 32, etc) instead of uint8?

답변 (1개)

Muthukumar Ganesan
Muthukumar Ganesan 2022년 8월 13일
편집: Muthukumar Ganesan 2022년 8월 13일
Hi,
Yes the "Hardware Implementation" parameter in the model configuration can be used for this purpose.
Choose Custom processor and in the device details configure "char" to 16 bits. Please refer to attachment.
Hope this helps. Thanks.

카테고리

Help CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by