Feedback Transition to a State in State Flow

조회 수: 2 (최근 30일)
shauk
shauk 2017년 5월 10일
답변: Arunkumar M 2018년 11월 9일
So i want to state 1 the first time with the condition [Rising== 1 && n == 32] and then re enter it everytime from state 8 with the transition [Rising== 1 && n == 1]. Would this work?
When i implement this design using HDL coder and download it on the FPGA i don't see any output signal. I output my signals to simulink from state 8.
  댓글 수: 2
Alain Kuchta
Alain Kuchta 2017년 5월 12일
Have you verified your design by simulating the Stateflow chart in Simulink? Is the output what you expect?
Do you want the condition for the transition from State_8 to State_1 to be [Rising== 1 && n == 1] or do you want to the action of the transition to be setting the value of Rising and n ?
shauk
shauk 2017년 5월 22일
Hallo I want the condition for the transition from State_8 to State_1 to be [Rising == 1 && n == 1]. But later i checked it on the simulink state flow chart and it works fine.

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

답변 (1개)

Arunkumar M
Arunkumar M 2018년 11월 9일
[Rising == 1 && n == 1] condition was used for entering State_8 as well as for exiting State_8. This makes State_8 to be active only for 1 task cycle. This could be the reason why you are not seeing any output from State_8.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by