서브시스템
블록을 기능적 서브시스템으로 그룹화, 모델 계층 구조 만들기
모델의 크기와 복잡도가 증가하면 블록을 여러 서브시스템으로 그룹화하여 모델을 단순화할 수 있습니다. 서브시스템은 단일 Subsystem 블록으로 그룹화된, 여러 블록으로 구성된 세트입니다.
서브시스템을 사용할 때의 효과는 다음과 같습니다.
계층적 블록 다이어그램이 설정됩니다. 여기서 Subsystem 블록과 이 서브시스템을 구성하는 블록은 서로 다른 계층에 있습니다.
기능적으로 연관된 블록이 함께 유지됩니다.
모델 창에 표시되는 블록의 수를 줄이는 데 도움이 됩니다.
입력 및 출력이 있는 인터페이스가 설정됩니다.
서브시스템의 복사본을 만든 경우 해당 복사본은 소스 서브시스템에 독립적입니다. 한 모델 내에서나 여러 모델 간에 서브시스템의 내용을 재사용하려면 참조된 서브시스템, 참조된 모델 또는 사용자 지정 라이브러리의 블록에 링크된 서브시스템을 사용해 보십시오. 자세한 내용은 Choose Among Types of Model Components 항목을 참조하십시오.
서브시스템은 가상일 수도 있고 비가상일 수도 있습니다. 가상 서브시스템은 모델에 시각적 계층 구조를 제공합니다. 비가상 서브시스템은 시각적 계층 구조를 제공하고 모델 내에서 하나의 단위로 실행됩니다.
블록
Subsystem | Group blocks to create model hierarchy |
함수
툴
모델 참조 변환 어드바이저 | Convert subsystems to referenced models |
참조 파일 창 | View, save, and close referenced subsystems and models |
도움말 항목
서브시스템
- 서브시스템 만들기
서브시스템을 만드는 방법. - Expand Subsystem Contents
Flatten a model hierarchy by bringing the contents of a subsystem up one level. - Navigate Model Hierarchies
Navigate model hierarchy of subsystems and referenced models. - Preview Content of Model Components
Display representation of block contents on the face of a block.
서브시스템 참조
- Subsystem Reference
Save a subsystem in a separate file and reference it in a model. - Reference a Subsystem File in a Model
Use subsystem reference in a model. - Change Subsystem Reference Component Dynamically Using InitFcn
This example shows how to dynamically change the subsystem reference component using the 초기화 함수. - Validate Subsystem Reference Use and Build Model Using Component Codes
This example shows how to check the valid use of subsystem reference instances in a model and reuse generated subsystem component codes to build the model using unit testing.