Stateflow shows a dimension error for an output port?

조회 수: 1 (최근 30일)
Ayham Aljawabrah
Ayham Aljawabrah 2021년 11월 26일
편집: Ayham Aljawabrah 2021년 12월 21일
I am using Statefloe, specifically, Simulink based state and experiencing a problem. My Model have 5 states and uses one simulink function to check the transition conditions based on different integrators states and another function to set the state of the associated integrators in different states at the transition.
My chart contains only '8 output', as seen in the red box, right of the 2ed picture. However, the following error keeps appearing for 'Output Port 10' which does not exist in my model:
Error in port widths or dimensions. 'Output Port 10' of 'dynamic_model_stateflow/Chart' is a one dimensional vector with a maximum of 1 elements.
Component:Simulink | Category:Model error
Error occurred in 'dynamic_model_stateflow/Chart'.
Component:Simulink | Category:Model error
I thought that these extra two ports (9 and 10) are related to the two Simulink functions, so, I tried to remove the functions and make it dummy model (runs on simple transition conditions and without setting the integrator states), and it worked but I need the model to include these functions. Port 10 is not visible to meand cannot do anything to change its properties.
How may I solve the problem?

답변 (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