モデルのビルド前後に、何らかの処理を行うことはできますか?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 25 Ott 2013
Modificato: MathWorks Support Team
il 25 Feb 2021
Simulinkモデルをビルドする前に、何らかの処理をするようにプログラムを書く方法を教えてください。
Risposta accettata
MathWorks Support Team
il 27 Lug 2021
Modificato: MathWorks Support Team
il 25 Feb 2021
<STF>_make_rtw_hook.m を編集することで可能です。
※ <STF> は、ert 等のSystem Target File名です。
Embedded Coderの ert.tlc を利用している場合であれば、ert_make_rtw_hook.m を編集します。
オリジナルを別名で保存しておいて、edit ert_make_rtw_hook を実行してください。
中に、以下のような記述があります。
switch hookMethod
...
case 'entry'
***
entry がビルド時の最初に処理される部分ですので、*** の部分に何らかのプログラムを追記してください。
STF_make_rtw_hookに関しては、下記URL先をご参照願います。
・STF_make_rtw_hook ファイルによるビルド プロセスのカスタマイズ
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Code and Tool Customization in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!