Stateflow shows a dimension error for an output port?
2 次查看(过去 30 天)
显示 更早的评论
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/814194/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/814199/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/841010/image.png)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!