Embedded Coder and "TRUE" or "true" definition

3 Ansichten (letzte 30 Tage)
Massimiliano Sturla
Massimiliano Sturla am 24 Feb. 2016
Beantwortet: Michael Martin am 30 Apr. 2018
Hi to all! I'm generating c++ code from a simulink stateflowusing Embedded coder package (simulink coder) I have and old version (that was generated 1 years ago from another person) that is quite different. Some file that were generated are: - chart.cpp - ert_maiin.cpp that are perfect (except for date) equals! But some file, like rtwtype.h are very different...
One important thing is that in old version is generated a code for uppercase TRUE/FALSE definition and in the new version a lowercase of true/false definition. another difference is naming define constant that use or not the underscore "_" before the define-name
So there is any trick to generate the "old" mode definition?
Thanks, Massimiliano

Antworten (1)

Michael Martin
Michael Martin am 30 Apr. 2018
To change the case definition:
Navigate to "Code Generation" either from the simulations tab in Simulink, or from model explorer. Under "Code Generation", select "Data Type Replacement".
Next click the ellipsis (...) fro "Advanced parameters. In the Boolean false and true identifiers, type FALSE and TRUE, respectively.
- Michael

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by