Main Content

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

Variant 시스템

중복 없이 다양한 사양을 지원하는 사용자 지정 모델 버전 만들기

Simulink®에서는 한정된 개수의 가변 구성요소로 이루어진 고정된 단일 공통 구조의 모듈식 설계 플랫폼 한 개를 기반으로 여러 모델을 만들 수 있습니다. 이러한 가변성은 가변 구성요소를 사용한 고정된 단일 마스터 설계를 개발할 때 유용합니다.

이러한 접근 방식을 사용하면 응용 사례, 비용 또는 운영 관련 고려 사항에 따라 달라지는 다양한 고객 요구 사항을 충족할 수 있습니다.

Variant는 모듈식 설계 플랫폼의 가변 구성요소입니다. 이를 사용하면 통합된 하나의 블록 다이어그램에서 단일 모델에 대해 여러 가지 구현을 지정할 수 있습니다. 자세한 내용은 What Are Variants and When to Use Them 항목을 참조하십시오.

Variant 유형에는 계층 및 인라인, 두 가지가 있습니다. 계층 Variant는 Variant Subsystem 블록으로 구현되고, 인라인 Variant는 Variant Source 블록 및 Variant Sink 블록으로 구현됩니다. Variant Subsystem 블록을 사용하는 경우 다음과 같은 이점이 있습니다.

  • Model 블록과 Subsystem 블록을 Variant 시스템으로 혼합할 수 있습니다.

  • I/O를 유동적으로 구성할 수 있으므로 모든 Variant의 입력 포트와 출력 포트의 수가 같지 않아도 됩니다.

블록

Variant Subsystem, Variant ModelTemplate subsystem containing Subsystem, Model, or Subsystem Reference blocks as Variant choices
Variant SourceRoute among multiple inputs using Variants
Variant SinkRoute amongst multiple outputs using Variants
Manual Variant SourceSwitch between multiple variant choices at input
Manual Variant SinkSwitch between multiple variant choices at output

클래스

Simulink.VariantSpecify conditions that control variant selection
Simulink.VariantConfigurationDataClass representing a variant configurations data object
Simulink.VariantManagerClass representing a set of Variant Manager functionality
Simulink.VariantConfigurationAnalysisClass representing a set of Variant Configuration Analysis functionality
Simulink.VariantControlCreate a variant control variable object
Simulink.VariantVariableCreate a variant parameter object

도움말 항목

Variant 소개

What Are Variants and When to Use Them

Single system that caters to multiple variant requirements.

Variant Terminology

Learn terminology and parameters related to Simulink variants.

Create a Simple Variant Model

Learn how to create a model using Variant blocks.

Introduction to Variant Controls

Learn how to control variant blocks.

Working with Variant Choices

Activate, inactivate, or create default variant choices.

Create Variant Controls Programmatically

Use MATLAB® code to define variant controls.

Approaches to Control Active Variant Choice of a Variant Block Using Mask or Model Workspace

This example shows different approaches to control the active choice of inline variant and Variant Subsystem blocks from a mask or a model workspace.

Variant Subsystem

Variant Subsystem

Variant Subsystem의 기본 기능 알아보기

Define, Configure, and Activate Variant Choices in a Variant Subsystem Block

Represent variant choices in Variant Subsystems.

Propagate Variant Conditions Outside a Variant Subsystem Block

Propagate variant conditions outside of Variant Subsystem block.

Use Variant Subsystem Blocks with Conditionally Executed Subsystems

Understand how to use Variant Subsystem blocks with conditionally executed systems as variant choices.

Convert Configurable Subsystem to Variant Subsystem

Learn how to convert configurable subsystems to variant subsystems and their behavior on loading.

Control Active Choice of Locked Custom Library Variant Subsystem Using Mask Parameter

Control active choice of Variant Subsystem that belongs to a locked custom library.

Automatic Mask Icon Promotion in Variant Subsystems

This example demonstrates how Simulink® automatically displays the mask icon of the active variant block on the parent Variant Subsystem block.

Variant Function-Call Signals on Variant Subsystem Outport

This example shows how the Variant Subsystem block allows function-call signals from its choice blocks to be merged on its outports.

인라인 Variant

Define and Configure Variant Sources and Sinks

Represent variant choices using Inline Variants.

Visualize Variant Implementations in a Single Layer

View the variant choices in a model containing Inline Variants.

Variant Source and Variant Sink Blocks

Define variant choice in Variant Source and Sink blocks.

Variant Condition Propagation with Variant Sources and Sinks

Propagate variant conditions from the Variant Source and Variant Sink blocks.

Propagate Variant Conditions from Variant Source Blocks to Subsystem Blocks

Understand variant condition propagation to virtual and non-virtual subsystems.

Propagate Variant Conditions from Variant Source Blocks to Conditionally Executed Subsystems

Learn about variant condition propagation from Variant Source blocks to conditional subsystems .

Control Variant Condition Propagation

Control propagation of variant conditions upstream and downstream.

Variant Elements within Buses

Understand how to create variant bus, generate code, and variant condition propagation with bus.

Use Variant Source Block to Receive or Output Function-Call Signals for Simulation and Code Generation

This example shows how a Variant Source block receives function-call signals at its inports and conditionally merges the signals at its outport.

코드 생성

Prepare Variant-Containing Model for Code Generation

Configure and generate code for a variant model.

Variant 관리자

Variant Manager Overview

Use a central tool to manage variation points of a variants model.

Create and Validate Variant Configurations

Create variant configuration for a model and validate their accuracy.

Import Control Variables to Variant Configuration

Import control variables associated with a model.

Define Constraints

Define constraints across models.

Reduce Models Containing Variant Blocks

Generate models with a subset of variant configurations.

Analyze Variant Configurations in Models Containing Variant Blocks

Analyze model references and libraries for each variant configuration in a model containing variant blocks.

Variant 파라미터

Use Variant Parameters to Reuse Block Parameters with Different Values

Design one model for many systems that differ in block parameter values.

Create a Simple Variant Parameter Model

This example shows you how to create simple model with variant parameters.

Variant Controls in Variant Parameters

Learn how to control variant parameters.

Change Active Values and Activation Time of Variant Parameters

This example shows how to change the active values and activation time of variant parameters in a Simulink® model.

예제 모델

Variants Example Models

A set of concept examples that illustrate some of the Simulink variants capabilities.

추천 예제