필터 지우기
필터 지우기

Unkown error in stateflow simulink

조회 수: 3 (최근 30일)
Mrudul Agrawal
Mrudul Agrawal 2020년 12월 9일
댓글: Mrudul Agrawal 2020년 12월 14일
Hey all!!
I am trying to simulate railway traffic signal having 2 platforms. I am encountering an error which I am not able to understand.
Kindly someone please help me build this model. Please reply if you are not able to understand my symbols.

채택된 답변

Mark McBroom
Mark McBroom 2020년 12월 12일
It looks like you are attempting to access P1 and P2 in multiple state machines. You have defined P1 and P2 as global variables in your statecharts. YOu need to add a global Data Store Memory in the Simulink model for P1 and P2 that the statecharts can access.
Thanks.
Mark.
  댓글 수: 3
Mark McBroom
Mark McBroom 2020년 12월 13일
For UI, easiest approach is to use Simulink Dashboard blocks:
if you need more capability that is available in Dashboard blockset, you can create your own MATLAB UI using Application Designer, but this is more work. https://www.mathworks.com/help/vnt/ug/developing-an-app-designer-app-for-a-simulink-model-using-can.html
Mrudul Agrawal
Mrudul Agrawal 2020년 12월 14일
Thanks Mark
My model is working now but not upto the mark. I want the train should go to platform 2 when platform 1 is occupied and vice versa but it is occupying only 1 platform at a time. Can you please help me with this??
I am attaching the updated copy of the model

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by