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

조회 수: 3 (최근 30일)
Kento SHIRAKATA
Kento SHIRAKATA 2019년 12월 19일
답변: Toshinobu Shintai 2019년 12월 20일
タイトル通りです.
現在,mファイルから
sim('hoge')
といった形でシムリンクでシミュレーションをしています.
そこで,ペーシングのOn/Offをmファイルで設定したいのです.
sim('hoge','pacing','Off');
のような形でできればよいのですが,なにか方法はありませんでしょうか?

채택된 답변

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 モデル化에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!