Why do I receive an error that there is no named block state with the name for a custom Stateflow chart in R2018b?

조회 수: 2 (최근 30일)
Given is a custom Stateflow chart as show below,
When running the corresponding model the following error message appears,
There is no named block state with the name 'var1' in 'State1'.
see the following figure,
while right after the following Simulink subsystem within State1 opens up automatically in Simulink,
Why do I receive an error that there is no named block state with the name for a custom Stateflow chart in R2018b?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2020년 10월 15일
This error occurs because it is used a Simulink State instead of a standard State and variables are added in the title section of the Simulink State which is unexpected. To resolve the issue one has to replaced the Simulink States with standard States as shown in the following figure,

추가 답변 (0개)

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by