Data Type Names in Generated Code
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
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
2 comentarios
Bogdan Bodnarescu
el 21 de En. de 2022
Have you found a solution so far?
I am having the same problem.
Respuestas (1)
Srijith Vijay
el 22 de Jul. de 2016
Bogdan Bodnarescu
ha marcado con alerta este/a respuesta
Hi,
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.
Refer the link for more details: http://www.mathworks.com/help/releases/R2013b/ecoder/ug/data-type-replacement.html
0 comentarios
Ver también
Categorías
Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!