이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
모델 참조
다른 모델에서 블록으로 모델을 재사용
Model 블록을 사용하여 한 모델을 다른 모델에 포함시킬 수 있습니다. Model 블록의 각 인스턴스를 모델 참조라고 합니다. 시뮬레이션 및 코드 생성 시 참조된 모델 내 블록은 하나의 단위로 함께 실행됩니다. 참조된 모델을 포함하는 모델을 부모 모델이라고 합니다. 부모 모델과 참조된 모델로 구성된 모음이 모델 계층 구조를 이룹니다.
서브시스템과 마찬가지로, 모델 참조를 사용하여 대규모 모델을 계층적으로 구성할 수 있습니다. 라이브러리와 마찬가지로, 모델 참조를 사용하면 블록 세트를 한 번만 정의한 후 반복해서 사용할 수 있습니다. 모델 참조는 서브시스템과 라이브러리로는 얻을 수 없는 여러 이점을 제공합니다. Model 블록 컨텍스트와 별개로 참조된 모델이 컴파일되므로, 이를 통해 다음을 비롯한 여러 이점을 얻을 수 있습니다.
모듈식 개발
모델 보호
참조에 의한 포함
증분 불러오기
가속화된 시뮬레이션
증분 코드 생성
독립적 구성 세트
블록
Model | Reference another model to create model hierarchy |
Variant Subsystem, Variant Model | Template subsystem containing Subsystem, Model, or Subsystem Reference blocks as variant choices |
함수
모델 설정
툴
모델 참조 변환 어드바이저 | Convert subsystems to referenced models |
참조 파일 창 | View, save, and close referenced subsystems and models |
도움말 항목
모델 참조 시점 결정하기
- Model Reference Basics
Create a model hierarchy by referencing one model in another model. A referenced model contains blocks that execute together as a unit. - 구성요소 기반 모델링 지침
대규모 모델 및 다중 사용자 개발 팀을 위한 구성요소화를 고려합니다. - Model Reference Requirements and Limitations
Model references have requirements and limitations relating to features such as reusability, simulation modes, masking, and debugging.
모델 참조 만들기
- Reference Existing Models
Include a model in another model. - Reference Protected Models from Third Parties
Use a protected model that you received from a third party. - Convert Subsystems to Referenced Models
Prepare a subsystem for conversion, convert the subsystem to a model, and compare simulation results before and after conversion. - Model Reference Interface and Boundary
Ports in the referenced model correspond with ports at the model reference. Signals that cross the model boundary must meet certain requirements. - Inspect Model Hierarchies
Examine the contents, structure, model versions, and logged signals in a model hierarchy.
모델 참조 구성하기
- Set Configuration Parameters for Model Hierarchies
Configuration parameter values can be different in top models and referenced models. Some configuration parameter values have special requirements or behavior with model referencing. - Conditionally Execute Referenced Models
Execute referenced models conditionally, similar to conditionally executed subsystems. - Referenced Model Sample Times
A referenced model can inherit sample times from the model that references it. - Parameterize Instances of a Reusable Referenced Model
When you model a reusable component as a referenced model, to configure each instance of the component to use different values for block parameters, create model arguments. - Parameterize a Referenced Model Programmatically
This example shows how to programmatically configure multiple instances of a referenced model to use different values for the same block parameter. - Group Multiple Model Arguments into a Single Structure
This example shows how to programmatically configure multiple instances of a referenced model to use different values for the same block parameter by using structures. - Configure Instance-Specific Data for Lookup Tables Programmatically
When you useSimulink.LookupTable
objects to store and configure lookup table data for ASAP2 or AUTOSAR code generation (for example, STD_AXIS or CURVE), you can configure the objects as model arguments.
모델 계층 구조 시뮬레이션하기
- Choose Simulation Modes for Model Hierarchies
Select the simulation mode for models in a model hierarchy. - Manage Simulation Targets for Referenced Models
A simulation target, or SIM target, is a MEX-file that implements a referenced model that executes in accelerator mode. - 더 빠른 시뮬레이션을 위해 Simulink 캐시 파일 공유하기
Simulink 캐시 파일을 사용하여 처음 빌드 때의 비용이 다시 발생하지 않도록 해 주는 빌드 아티팩트를 공유합니다. - Reduce Update Time for Referenced Models by Using Parallel Builds
Reduce diagram update time for large model reference hierarchies by using parallel builds. - Simulate Conditionally Executed Referenced Models
Run a standalone simulation of a conditionally executed referenced model. - Simulate Multiple Referenced Model Instances in Normal Mode
Simulate a model that contains multiple instances of a referenced model.