When we use connect function to connect System Composer components, the connection between the respective components in the diagram are not getting connected.
Show older comments
When we use the function "connect" to establish connection between the components in System Composer, the corresponding diagram is not getting updated, i.e., there are no connections shown between the respective components in the diagramatic view. Why is it like this?
Answers (1)
Isha
on 21 May 2026 at 5:54
Hello,
This happens because the connect function creates logical connectors in the architecture model (API level), but it does NOT automatically update the layout/diagram visualization.
- The connect API modifies the model object (connectors between components/ports) connect - Create architecture model connections - MATLAB.
- The diagram view is a separate visual layout, and it may not refresh or auto-route connections after programmatic changes.
Fix would be running layout/refreshing manually, such as:
Simulink.BlockDiagram.arrangeSystem("modelName")
Connections are created in the model, but the diagram isn’t auto-rendered/arranged, so you don’t see them until you refresh/layout the view.
Hope this helps.
Categories
Find more on System Composer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!