Problem in code generated for variant subsystem

2 ビュー (過去 30 日間)
TAB
TAB 2014 年 6 月 30 日
コメント済み: Kaustubha Govind 2014 年 7 月 10 日
Hello All. I need help for an issue regarding variant subsystem.
I am using Matlab R2011b.
My model has a variant subsystem which have two implementation subsystems. Each implementation include Stateflow chart. Now problem is this, there is a separate function generated for chart in variant A , which is not used for variant B.
But this function is not guarded by preprocessor.
Something like this
static void enter_internal_ChartA_StateXYZ(void)
{
/* Some code for variant A chart*/
bla...
bla...
}
void mymodel_step(void)
{
#if VAR_A
bla......
bla......
enter_internal_ChartA_StateXYZ();
bla......
#elif VAR_B
bla......
bla......
bla......
#endif
}
Function enter_internal_ChartA_StateXYZ is used for VAR_A only but it is not gaurded by preprocessor. So while compiling code for VAR_B, I am getting error. Am I doing something wrong or is it Matlab bug ?
The only special thing I am using is AUTOSAR target production package target for code generation which is inherited from ert target only.
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2014 年 7 月 10 日
TAB: I would recommend contacting MathWorks Support about this issue.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by