Effacer les filtres
Effacer les filtres

Code generation error with incompatible types

12 vues (au cours des 30 derniers jours)
Taeseok Kang
Taeseok Kang le 12 Avr 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

Réponses (1)

Animesh
Animesh le 1 Sep 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

Catégories

En savoir plus sur Deployment, Integration, and Supported Hardware dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by