필터 지우기
필터 지우기

Can a different initial Stateflow state be set for a test case/harness?

조회 수: 2 (최근 30일)
Pascal Witting
Pascal Witting 2020년 10월 6일
댓글: Pascal Witting 2020년 11월 23일
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?

답변 (1개)

Devendra Bhave
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.
  댓글 수: 1
Pascal Witting
Pascal Witting 2020년 11월 23일
Yes, I need to avoid changing the model.
I was hoping for another, Test Harness specific way to set the (initial) state, from something like the Test Sequence Block, but without changing the model.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Stateflow에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by