Can I force Stateflow to use uint16_T instead of uint8_T in generated code?
5 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
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.
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!