Main Content

서브시스템

블록을 기능적 서브시스템으로 그룹화, 모델 계층 구조 만들기

모델의 크기와 복잡도가 증가하면 블록을 여러 서브시스템으로 그룹화하여 모델을 단순화할 수 있습니다. 서브시스템은 단일 Subsystem 블록으로 그룹화된, 여러 블록으로 구성된 세트입니다.

서브시스템을 사용할 때의 효과는 다음과 같습니다.

  • 계층적 블록 다이어그램이 설정됩니다. 여기서 Subsystem 블록과 이 서브시스템을 구성하는 블록은 서로 다른 계층에 있습니다.

  • 기능적으로 연관된 블록이 함께 유지됩니다.

  • 모델 창에 표시되는 블록의 수를 줄이는 데 도움이 됩니다.

  • 입력 및 출력이 있는 인터페이스가 설정됩니다.

서브시스템의 복사본을 만든 경우 해당 복사본은 소스 서브시스템에 독립적입니다. 한 모델 내에서나 여러 모델 간에 서브시스템의 내용을 재사용하려면 참조된 서브시스템, 참조된 모델 또는 사용자 지정 라이브러리의 블록에 링크된 서브시스템을 사용해 보십시오. 자세한 내용은 Choose Among Types of Model Components 항목을 참조하십시오.

서브시스템은 가상일 수도 있고 비가상일 수도 있습니다. 가상 서브시스템은 모델에 시각적 계층 구조를 제공합니다. 비가상 서브시스템은 시각적 계층 구조를 제공하고 모델 내에서 하나의 단위로 실행됩니다.

블록

SubsystemGroup blocks to create model hierarchy

함수

모두 확장

Simulink.BlockDiagram.createSubsystemCreate subsystem containing specified set of blocks
Simulink.BlockDiagram.copyContentsToSubsystemCopy graphical contents from system to empty subsystem
Simulink.BlockDiagram.expandSubsystemReplace subsystem with subsystem contents
Simulink.SubSystem.convertToModelReferenceConvert subsystem to model reference
Simulink.SubSystem.copyContentsToBlockDiagramCopy graphical contents from subsystem to empty system
Simulink.SubSystem.deleteContents서브시스템의 내용 삭제
convertAllSubsystemReferenceBlockToSubsystemConverts all subsystem reference blocks to regular Subsystem blocks
convertSubsystemReferenceBlockToSubsystemConverts a subsystem reference block to a regular Subsystem block
convertSubsystemToSubsystemReferenceConverts a Subsystem block to subsystem reference
getActiveInstancesReturns all the active instances of subsystem references
getAllDirtyInstancesReturns child Subsystem block diagrams that are referred in the given block diagram and are also being edited
getAllInstances Returns all subsystem reference blocks inside a block diagram
getAllReferencedSubsystemBlockDiagrams Returns all the child Subsystem block diagrams for a given block diagram
getNearestParentSubsystemReferenceBlock Returns the nearest parent subsystem reference for a block
getSystemOwningTheLockReturns the system that has acquired the lock for editing
isSystemLocked Checks if the system is locked due to an edit or update to the subsystem reference
Simulink.SubsystemReference.generateSignaturesGenerate unit test signatures of subsystem file
Simulink.SubsystemReference.getUnitTestNamesReturn names of unit tests of subsystem file
Simulink.SubsystemReference.removeSignaturesRemove previously generated unit test signatures of subsystem file
Simulink.SubsystemReference.showSignatureDiffDialogForSSOpen dialog to show difference in signatures of two subsystem blocks
Simulink.SubsystemReference.showSignatureDiffDialogForUnitTestsOpen dialog to show difference in signatures of subsystem reference instance with unit test signatures

모델 참조 변환 어드바이저Convert subsystems to referenced models
참조 파일 창View, save, and close referenced subsystems and models

도움말 항목

서브시스템

서브시스템 참조