Error while generating the code using ert.tlc

조회 수: 5 (최근 30일)
Ravi Chikkireddy
Ravi Chikkireddy 2021년 10월 15일
답변: aditi bagora 2024년 5월 8일
I am facing this error when i generate the code using ert.tlc.. It configured as non-reusable function. The variables are referenced as argumets, means as pointers.. Please help to resolve the issue..
Error message says reusable function problem. It says the ''output port of stateflow chart cannot be conditional'', while there are no conditions in the chart.
  댓글 수: 1
Ravi Chikkireddy
Ravi Chikkireddy 2021년 10월 15일
I am able to generate the code without stataflow chart while the variables are referenced as pointers. But, it's not working with stateflow chart while the variables are referenced as pointers.

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

답변 (1개)

aditi bagora
aditi bagora 2024년 5월 8일
Hello Ravi,
I understand you are facing an error with generating ert.tlc. It appears the problem is not due to variables being referenced as pointers.
The error message indicates that output port 2 is subject to conditional execution, which is not supported.
Please refer to the documentation link provided for more details on the Outport block. It specifies that:
Given that stateflow charts operate based on conditional transitions, it is likely that in some scenarios, the output port is not activated, leading to this error.
To resolve this issue, please review your Stateflow chart to ensure that all potential transitions result in activating the output port.
Hope this helps!

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by