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

2 vues (au cours des 30 derniers jours)
William Chavez
William Chavez le 7 Oct 2013
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?

Réponses (1)

Muthukumar Ganesan
Muthukumar Ganesan le 13 Août 2022
Modifié(e) : Muthukumar Ganesan le 13 Août 2022
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.

Catégories

En savoir plus sur Complex Logic dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by