Effacer les filtres
Effacer les filtres

Stateflow code generation error when Device vendor is Texas Instruments C2000

1 vue (au cours des 30 derniers jours)
Guys, there is a simple calculation is stateflow:y=1000*x. x is fixdt(1,16,8) with range [-20,20], y is int16.
when device vendor is ARM, simulation is ok, and the generated code is
when device vendor is Texas Instruments C2000, the generated code is
Please be noted that the limitation trim is done before the 8-bit shift, so the output range is [-128,127], which is also validated by simulation.
How can I avoid this kind of code generation error if I must choose Texas as the vendor?

Réponses (1)

Shengping Wang
Shengping Wang le 9 Sep 2016
up

Catégories

En savoir plus sur Instrument Connection and Communication dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by