Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

모델 참조

다른 모델에서 블록으로 모델을 재사용

모델 참조Model 블록을 사용하는 다른 모델에 대한 참조입니다. 이러한 참조는 모델 계층 구조를 생성합니다. 참조된 각 모델에는 정의된 인터페이스가 있으며, 이 인터페이스는 그 입력 및 출력의 속성을 지정합니다. 정의된 인터페이스에 의한 참조된 모델의 동작은 모델 계층 구조의 맥락과는 독립적입니다. 모델 참조는 코드 재사용, 단위 테스트, 병렬 빌드, 대규모 구성요소에 이상적입니다. 파일 경합 및 병합 문제도 줄일 수 있습니다.

참조된 모델이 모델링 요구 사항을 충족하는지 확인하려면 구성요소 기반 모델링 지침 항목을 참조하십시오.

모델 참조 계층 구조에 대한 코드 생성을 학습하려면 Referenced Models (Simulink Coder) 항목을 참조하십시오.

보호 모델을 생성하려면 Model Protection (Simulink Coder) 항목을 참조하십시오.

모델 참조 계층 구조에 대한 SIL/PIL 테스트를 수행하려면 SIL and PIL Simulations (Embedded Coder) 항목을 참조하십시오.

블록

ModelReference another model to create model hierarchy
Variant ModelTemplate subsystem containing Subsystem, Model, or Subsystem Reference blocks as variant choices

함수

모두 확장

depviewAnalyze and visualize model referencing dependencies with or without library dependencies
find_mdlrefsFind referenced models and Model blocks in model hierarchy
pathsToReferencedModelModel hierarchy path composed of referenced models and Model blocks (R2023b 이후)
Simulink.BlockDiagram.refreshBlocksUpdate variants, linked blocks, and model references to reflect changes (R2023a 이후)
Simulink.BlockPathFully specified Simulink block path
Simulink.fileGenControlSpecify root folders for files generated by diagram updates and model builds
Simulink.ModelReference.refreshForce update to Model block to reflect changes to referenced model (R2020a 이후)
Simulink.SubSystem.convertToModelReferenceConvert subsystem to model reference
slbuildBuild standalone executable file or model reference target for model
slxcinfoQuery contents of Simulink cache files (R2020b 이후)
slxcunpackUnpack simulation and code generation targets from Simulink cache file (R2020b 이후)
Simulink.ProtectedModel.createHarnessCreate harness model that provides isolated environment for testing protected model (R2020b 이후)
Simulink.ProtectedModel.getPublisherReturn information about publisher that signed the protected model (R2020a 이후)
Simulink.ProtectedModel.verifySignatureVerify digital signature on protected model (R2020a 이후)
Simulink.ProtectedModel.suppressSignatureVerificationSuppress digital signature verification of protected models (R2020b 이후)

모델 설정

모두 확장

재빌드Option to conditionally, always, or never rebuild model reference targets
재빌드 안 함인 경우 진단Diagnostic action to take when model reference target must be rebuilt
병렬 모델 참조 빌드 활성화Option to build a model reference hierarchy in parallel whenever possible
빌드에 대한 MATLAB 워커 초기화Options for how to initialize MATLAB workers for parallel builds
참조된 모델에 대해 엄격한 스케줄링 검사 활성화Option to check consistency of scheduling and sample time in referenced models
최상위 모델당 허용되는 인스턴스의 총 개수Number of references to this model that can occur in another model
가변 크기 신호의 크기 전파Option to specify how variable-size signals propagate through referenced models
대수 루프 발생 최소화Option to try to eliminate artificial algebraic loops related to referenced model
모든 신호 레이블을 모델 외부로 전파Option to pass propagated signal names out of referenced model
모델을 참조할 때 로컬 솔버 사용Option to use local solver to solve referenced model as separate system of equations (R2022a 이후)
모델 종속성User-created files and data that potentially impact simulation results
병렬 풀에서 일관성 검사 수행Option to perform checks on parallel pool before starting parallel build (R2021a 이후)
참조된 모델에 대한 사용자 지정 코드 포함Option to use custom code in model reference simulation target
코드 생성 시 고정 크기 스칼라 루트 입력을 값으로 전달Option to pass scalar input to model by reference or value
Model 블록 버전 불일치Diagnostic action to take when Model block does not represent current version of referenced model
포트 및 파라미터 불일치Diagnostic action to take when port or parameter does not match between Model block and referenced model
지원되지 않는 데이터 기록Diagnostic action to take when data logging is unsupported
모델 인수에 대한 명시적 최종 값이 없음Diagnostic action to take for model argument with default value at top-level model reference (R2020b 이후)

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

도움말 항목

모델 참조 시점 결정하기

모델 참조 만들기

모델 참조 구성하기

모델 계층 구조 시뮬레이션하기