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

1 回表示 (過去 30 日間)
Shouta Ogawa
Shouta Ogawa 2016 年 1 月 26 日
回答済み: Atsushi Matsumoto 2016 年 12 月 15 日
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 件のコメント
Shouta Ogawa
Shouta Ogawa 2016 年 1 月 26 日
Thank you. I see and try it.

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

採用された回答

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, 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