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.
Error while generating the code using ert.tlc
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
Antworten (1)
aditi bagora
am 8 Mai 2024
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:
- A conditionally executed subsystem cannot utilize the Outport block.
- The Outport block must be driven by a single, nonvirtual block output. For instance, a Mux block that combines multiple signals cannot be connected to the Outport block.
- https://www.mathworks.com/help/releases/R2019b/ecoder/ug/configure-c-step-function-arguments.html
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!
0 Kommentare
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!