SimulinkペーシングのOn/Offをmファイルで行いたい
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Kento SHIRAKATA
il 19 Dic 2019
Risposto: Toshinobu Shintai
il 20 Dic 2019
タイトル通りです.
現在,mファイルから
sim('hoge')
といった形でシムリンクでシミュレーションをしています.
そこで,ペーシングのOn/Offをmファイルで設定したいのです.
sim('hoge','pacing','Off');
のような形でできればよいのですが,なにか方法はありませんでしょうか?
0 Commenti
Risposta accettata
Toshinobu Shintai
il 20 Dic 2019
以下のコマンドでシミュレーションペーシングのOn/Offを切り替えることができます。
set_param(modelName, 'EnablePacing', 'on')
set_param(modelName, 'EnablePacing', 'off')
modelNameはモデルファイルの名前です。
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!