フィルターのクリア

Stateflow code generation - how to generate void instead of static void functions?

5 ビュー (過去 30 日間)
HJ
HJ 2014 年 2 月 13 日
回答済み: Mark McBroom 2017 年 11 月 13 日
Hi,
I'm using generated code from stateflow and noticed that subcharts were being generated as static void functions. This causes an issue for me as I am using the generated C file in tandem with other C files that need to call the functions from the MATLAB generated code - and static void functions cannot be called from other C files.
Is there a way to ensure the functions are generated as void, and not static void, in order for me to be able to use them with other c files?
  1 件のコメント
Duan Liquan
Duan Liquan 2017 年 11 月 10 日
Have you solved this problem? I'm also confuse about this.

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

回答 (1 件)

Mark McBroom
Mark McBroom 2017 年 11 月 13 日
You could try re-architecting your Stateflow code to use graphical functions. This link provides details.

カテゴリ

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