Run matlab command after Simulink code gen is complete?

7 ビュー (過去 30 日間)
Andrew Poissant
Andrew Poissant 2020 年 3 月 10 日
コメント済み: Andrew Poissant 2020 年 3 月 16 日
I have a Simulink file that I generate code for and build on an Odroid. I want to run another Simulink file on my laptop after the build and load process is complete. To do this, I am using the code below to start the Simulink file. However, I do not know where to put the code so it executes right after the other Simulink file's generated code is built.
sim('AIFMS_HIL_FMs_001', inf)

採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 3 月 11 日
set_param(model, 'PostCodeGenCommand','pcgScriptName') but I would create a script to call rtwbuild() to generate code and then call sim() to run the simulation since these two tasks don't seem to be related.
  1 件のコメント
Andrew Poissant
Andrew Poissant 2020 年 3 月 16 日
Exactly what I was looking for, thanks!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by