Simlinkでマスクされた関数内にあるGotoBlockを有効にする方法
Ältere Kommentare anzeigen

上記のようにマスクされたブロック内にプロモートを用いてVinという名前の変数名を与え、GotoBlockを定義しています。
ただ。実際にシミュレーションを実行するとVinがつながっていないと表示され、Vinの出力は常に0になります。
上記あたりがヒントになるかと思い、マスクエディター上で下記コマンドをかいたのですがVariableNameは存在しないというエラーで使えませんでした。
set_param([gcb '/Goto'],'GotoTag',VariableName)
この問題を解決する方法をどなたか教えていただけないでしょうか?
Akzeptierte Antwort
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!