필터 지우기
필터 지우기

Using Simulink Clock as a Chart Transition Condition

조회 수: 1 (최근 30일)
Chuck Rogal
Chuck Rogal 2019년 3월 29일
답변: Vignesh 2019년 4월 1일
After bringing in the clock I am using its value as a relational operand in a transition condition (t > x). Upon reaching the state with the outbound transition, the clock's value magically jumps from t < x to t > x which makes the condition always true. This is unexpected. I want it to monotonically increase (as usual) until the condition becomes true. How can I make the clock behave differently?
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2019년 3월 29일
Not clear. Are you using a "Clock" block in Simulink and make it as an input to your Stateflow chart, or do you have a counter/timer within the chart?

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

답변 (4개)

Chuck Rogal
Chuck Rogal 2019년 3월 29일
Sorry, I am bringing in the clock from a clock block and want to use its value in a transition condtion. The clock monotonically increases until it gets to the state with the transition and then it jumps so the condition is always true. I want it to continue to behave as a monotonicly increasing clock instead of jumping ahead.
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2019년 3월 29일
It should not happen like that. Make a simple example showing the problem so you can be helped.

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


Chuck Rogal
Chuck Rogal 2019년 3월 29일
I am workiing with matlab support and will post the solution. Thanks!

Chuck Rogal
Chuck Rogal 2019년 3월 29일
No solution. That is how the clock in implemented.

Vignesh
Vignesh 2019년 4월 1일
Can you help us understand the usecase better? Most clock mechanisms could be implemented with absolute time temporal logic, to take transition after certain time interval.

카테고리

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

태그

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by