Why is the port order on my Stateflow chart different than what appears in the Model Explorer?

조회 수: 8 (최근 30일)
I have a Stateflow chart with two input ports, "Port_A" and "Port_B". In the Model Explorer, "Port_A" is assigned to input port 1, and "Port_B" is assigned to input port 2. However when looking at the overview of the chart, "Port_B" is above "Port_A". Why is this happening?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2025년 11월 21일
Input and output ports can be rearranged by dragging and dropping the port arrows on the top model view of the chart. When this happens, the original port numbers are maintained, even if the order that they appear on the chart is different.
If the order that the ports appear on the chart is different than in the Model Explorer, then the ports may have been rearranged inadvertently. If this is the case, you should be able to drag and drop the ports to put them back in the correct order. Regardless of the order that the ports appear, the correct values should be assigned to the ports with the corresponding names.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by