Does the use of latency in statflow state work as expected?

조회 수: 4(최근 30일)
Hi, I have a problem with stateflow, which is if I use a delay function in the state to execute two sentences, does that delay function work?
Because the compilation prompted me to delete, so I hope you help me,thanks!
This temporal logic expression has no side-effect. It either needs to be used in an expression, or removed if deemed unnecessary. State 'init' in Chart 'BLDDPM_cpu1_CCP_V1_0_20190818/extraControl/Protect_Logic': after(1,sec)
aftersec.png

채택된 답변

Jonas
Jonas 2019년 8월 19일
편집: Jonas 2019년 8월 19일
Your state expression will not work indeed. You will need to create an additional state where ProtectStartBit = uint16(1); which has a state transition leading towards it with the condition after(1,sec);.
  댓글 수: 5
Xu Liu
Xu Liu 2019년 8월 19일
I got it, thanks a lot

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

추가 답변(0개)

범주

Find more on Simulink Functions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by