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

1 Ansicht (letzte 30 Tage)
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 Kommentare

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Weitere Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by