Data Type Names in Generated Code

10 views (last 30 days)
Rahul Prem Nazeer
Rahul Prem Nazeer on 16 Jan 2014
Commented: Bogdan Bodnarescu on 21 Jan 2022
When I am generating code using embedded code (ver:6.3), the data types appear as follows.
unit8 -> uint8_T
boolean ->boolean_T
I want to replace the 'boolean_T' type with 'bool' by defining a Simulink.AliasType object in the base workspace and updating this to the configuration set. But I get the following error.
Error using rtwbuild (line 241) Potential conflicting usages of identifier 'bool': a data type of that name, and Language Keywords
Is it not possible to use 'bool' as a user defined data type name?
Thanks Rahul
Bogdan Bodnarescu
Bogdan Bodnarescu on 21 Jan 2022
Have you found a solution so far?
I am having the same problem.

Sign in to comment.

Answers (1)

Srijith Vijay
Srijith Vijay on 22 Jul 2016
This answer was flagged by Bogdan Bodnarescu
For boolean, the replacement data type's BaseType must be either an 8-bit integer or an integer of the size displayed for Number of bits: int on the Hardware Implementation pane of the Configuration Parameters dialog box.


Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!