How to Create Compositions in System Composer
Sketch hierarchical system and software decompositions of components using a familiar component, port, and connector modeling approach. Iteratively add more details to your design until you are ready for implementation in Simulink®.
Published: 22 Feb 2019
The main view in System Composer is the composition view. It contains all the components in your architecture model that will eventually be implemented. You can think of it as a bill of materials view.
It consists of 3 base graphical items.
Components, which are boxes. Localization and Motor are two components in this composition.
Components have ports. These can be either input ports or output ports. Think of them as doorways that allow information to flow in or out of a component.
R1 is an input port R2 is an output port for localization. Notice they are both on the same side of the component. Ports can be placed on any side of a component, even top and bottom.
Components can be further decomposed. The content preview shows that the obstacle Avoidance component has been further decomposed.
The ports on the Obstacle Avoidance boundary are the same as the ones in level above and are connected to ports of the components seen here such as Path Planning.
Let’s create a new component, port and connector.
Drag out a box to create a component and give it a name. In this case Mag Sensor.
Now click on the component boundary to add a port and drag a line to connect it to another port then give the port a name.
This is a hierarchal composition diagram consisting of components, ports and connectors.
Featured Product
System Composer
Up Next:
Related Videos:
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
아시아 태평양
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)