Simulink - Stateflow - Trigger Event

조회 수: 3 (최근 30일)
JOKY JOKE
JOKY JOKE 2012년 1월 4일
편집: Corey Lagunowich 2025년 11월 3일
Hi,
I am using trigger events to get a transition in STATEFLOW. I am using a signal which is -1 at time step 1, 0 at time step 2 and 1 and time step 3. I would like to get two triggered events out of this signal.
Stateflow only recognizes one rising trigger from -1 to 0. From 0 to 1, it does not recognize the rising trigger. However, if I pause for one time step at 0, then Stateflow recognizes the seconded rising trigger from 0 to 1 too. That would be -1 at time step 1, 0 at time step 2 and 3 and 1 at time step 4.
Is there a reason for this and what would be a work-around?
Thank you

답변 (1개)

Corey Lagunowich
Corey Lagunowich 2025년 11월 3일
편집: Corey Lagunowich 2025년 11월 3일
This is expected behavior. Stateflow follows the same rules as Triggered Subsystems with respect to successive rising edges. See:

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by