Can a different initial Stateflow state be set for a test case/harness?
1 回表示 (過去 30 日間)
古いコメントを表示
Greetings,
I am trying to test a certain transition in a Stateflow statemachine without having to go through the whole statemachine from the initial state to this transition.
Can a different initial Stateflow state be set for a test case/harness?
0 件のコメント
回答 (1 件)
Devendra Bhave
2020 年 11 月 23 日
As per my understanding, you are expecting the default transition of Stateflow Chart to enter in your specified state.
Adding a new transition or new behaviour for the existing default transition changes the semantics of Stateflow chart and so the behaviour of the model. This should not be done during verification and validation phase.
However, if you are writing or editing the model, you may use junctions/labels to control entry of default transition. Please refer to the section ‘Label Default Transition’ in MathWorks documentation on default transitions for more information and detailed example.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!