Borrar filtros
Borrar filtros

Code generation error with incompatible types

12 visualizaciones (últimos 30 días)
Taeseok Kang
Taeseok Kang el 12 de Abr. de 2023
Respondida: Animesh el 1 de Sept. de 2023
When I build my code generation files, I receive the following error during the compile stage of the build process:
ctc E210: ["D:/Platform/PRJ/0900_System/02_configout/rte/SH00/XXX/Model/Detect/TrackFeat.c" 10655/92] "u16Id" is not a member name
ctc E333: ["D:/Platform/PRJ/0900_System/02_configout/rte/SH00/XXX/Model/Detect/TrackFeat.c" 10655/46] incompatible types at assignment
I think generated code is wrong. It should be changed like the commneted out part
/* Outputs for IfAction SubSystem: '<S254>/NoHiLo' incorporates:
* ActionPort: '<S257>/ActionPort'
*/
/* BusAssignment: '<S257>/Bus Assignment' */
rtb_bUpTrack.bSelTrack.bLoHi = SF_TrackFeat_B.bTrackSetOld.bTrack[0].bLife.u16Id;
//rtb_bUpTrack.bSelTrack.bLoHi = SF_TrackFeat_B.bTrackSetOld.bTrack[0].bLoHi; <- It should be chnaged like this.
/* End of Outputs for SubSystem: '<S254>/NoHiLo' */
Please refer to the picture below for related model

Respuestas (1)

Animesh
Animesh el 1 de Sept. de 2023
My understanding is that you ran into an error during code generation and were able to identify the cause.
I will not be able to explain why this error occurred to you because you have not provided the necessary model.
You can try compiling the code manually after making the required changes in the code using the .bat created in the generated code folder.
To read more about Generated Code Compilation, please refer to the following documentation :- https://www.mathworks.com/help/ecoder/executable-program-generation-and-verification.html

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by