Embedded Coder でC関数を生成するには (How to generate the C function in the Embedded Coder?)

Embedded Coder でモデルからCコードを生成するとき、外部のC言語のmain関数から呼び出せるような関数として生成するにはどうすればいいのでしょうか? 制御モデルのアルゴリズムのみをコード化できれば良くて、余計な機能を生成する必要はありません。
When I generate the C code from the model in the Embedded Coder, What do I do if I want to be generated as a function, such as call from the main function of the outside of the C language? And well if I can encode only the algorithm of the controller model, I do not need to generate the extra function.

 채택된 답변

Atsushi Matsumoto
Atsushi Matsumoto 2016년 12월 15일

1 개 추천

サブシステムを右クリックして、Cコード/[このサブシステムをビルド]をクリックすると、サブシステムの処理内容が関数として生成されます。
コードの利用用途に応じて、コンフィギュレーションパラメータ/コード生成にあるシステムターゲットファイルの設定を行うこともお忘れなく。

추가 답변 (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!

Translated by