Effacer les filtres
Effacer les filtres

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

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

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur モデル化 dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!