How can I remove real-time structures from code generated using Embedded Coder?
이전 댓글 표시
I am generating C code using Embedded Coder from a Simulink model and I need to remove the real-time structures (shown below) from the code.
With my current model settings, I am only seeing the RT_model structure in the code in the "init" and "step" functions, where they are not used for anything. The code generates like this:
/* Model step function */
void step(RT_MODEL_ADM_T *const ADM_M, BOOL_T *ADM_Y_return_value)
{
DW_ADM_T *ADM_DW = ((DW_ADM_T *) ADM_M->dwork);
….
}
/* Model initialize function */
void init(RT_MODEL_ADM_T *const ADM_M)
{
DW_ADM_T *ADM_DW = ((DW_ADM_T *) ADM_M->dwork);
….
}
Instead, I would like the code to generate like the code below:
void step(void)
{
...
}
void init(void)
{
...
}
Why are the real-time structures appearing in my code, and how can I get rid of them?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!