Stateflow issue in code generation: Invalid chart_inlinable property

14 ビュー (過去 30 日間)
Ursula Garcia
Ursula Garcia 2013 年 2 月 5 日
コメント済み: Chethan Pandarinath 2013 年 12 月 13 日
I tried to generate code for a Simulink model, and I had this message:
Error using rtwbuild (line 228) Error calling generated SFunction, BiCbiFli_Pcupwmx_sfun. Stateflow Internal Error: rtw_optimization info did not return a valid chart_inlinable property
Error in sl_customization>GenerateCode (line 308) rtwbuild(subSys,'Mode','ExportFunctionCalls');
Error in sl_customization>callGenerateCode (line 238) GenerateCode(subSys);
Do you know how to solve this issue? Where can I find this property?
Thanks,
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2013 年 2 月 5 日
This seems like a bug. Please contact MathWorks Tech Support to see if they can provide a workaround.

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

回答 (1 件)

Peter
Peter 2013 年 9 月 12 日
Did you manage to find a solution to this problem?
I am experiencing somewhat the same issue when generating code with rtwbuild.
Error using runModel (line 12)
Error calling generated SFunction, mymodel_sfun. Stateflow Internal Error:
rtw_optimization info did not return a valid chart_inlinable property
Error using runModel (line 12)
Error while bringing model references of model combinedTest up to date: Error
calling generated SFunction, mymodel_sfun. Stateflow Internal Error:
rtw_optimization info did not return a valid chart_inlinable property
However, if I clean the work folder, run the model in Accelerator mode and then use rtwbuild afterwards, it works. As if the accelerator build succeeds, and rtwbuild uses the generated files.
I am using many referenced models. I don't know if that could cause an issue.
  2 件のコメント
Chethan Pandarinath
Chethan Pandarinath 2013 年 12 月 6 日
Anybody have any insight? I am having a very similar issue...
Chethan Pandarinath
Chethan Pandarinath 2013 年 12 月 13 日
This isn't a great solution, but, I've found that if I call 'rtwbuild' on the offending sub-block (model reference) after the failed build, then when I try to build the full model it will go through. I.e., in your example, you could call rtwbuild('mymodel')

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

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by