Simulinkペー​シングのOn/Off​をmファイルで行いた​い

タイトル通りです.
現在,mファイルから
sim('hoge')
といった形でシムリンクでシミュレーションをしています.
そこで,ペーシングのOn/Offをmファイルで設定したいのです.
sim('hoge','pacing','Off');
のような形でできればよいのですが,なにか方法はありませんでしょうか?

 Akzeptierte Antwort

Toshinobu Shintai
Toshinobu Shintai am 20 Dez. 2019

0 Stimmen

以下のコマンドでシミュレーションペーシングのOn/Offを切り替えることができます。
set_param(modelName, 'EnablePacing', 'on')
set_param(modelName, 'EnablePacing', 'off')
modelNameはモデルファイルの名前です。

Weitere Antworten (0)

Kategorien

Mehr zu モデル化 finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!