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

1 view (last 30 days)
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.
  4 Comments

Sign in to comment.

Accepted Answer

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

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!