Change variable name in Stateflow model

28 ビュー (過去 30 日間)
Bjoern
Bjoern 2012 年 3 月 2 日
Is there a way to change a signal name that is referenced troughout a Stateflow model without having to go through the whole model and manually change its' name?
I figured it should do this automatically if I change the name in the Model Explorer but unfortunately not :(
  1 件のコメント
Bjoern
Bjoern 2012 年 4 月 3 日
It seems this isn't possible so I'm hoping Mathworks will fix this since they have context-aware variable re-naming in their latest editor.
Does anyone know anything about this?

サインインしてコメントする。

採用された回答

Adrian
Adrian 2012 年 5 月 29 日
It is possible to do "Search & Replace..." in a Stateflow chart. You can find this menu entry under the "Tools" menu or using the shortcut Ctrl+L; see this link http://www.mathworks.com/help/toolbox/stateflow/ug/f8-1016134.html . It worked nicely for me. I have Stateflow 6.5 (R2006b). Hope it works as you intended.
  1 件のコメント
Bjoern
Bjoern 2012 年 5 月 29 日
This works very nicely, Thanks Adrian.

サインインしてコメントする。

その他の回答 (1 件)

K E
K E 2012 年 4 月 3 日
Perhaps it is possible from the command line, for example making use of Simulink.findVars . Take a look at Doug Eastman's solution to a related problem, this blog post, and this technical note.

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by