이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
Variant 파라미터
Simulink®의 Variant 파라미터를 사용하면 단일 모델에서 시스템의 값 변형을 표현할 수 있습니다. 시뮬레이션할 Variant를 기준으로 서로 다른 값 세트를 그룹화할 수 있습니다. Variant 제어에 따라 각각의 값 세트를 활성화할 수 있습니다. 임의의 Simulink 블록에 Variant 파라미터를 포함시킬 수 있습니다. 자세한 내용은 What Are Variants and When to Use Them 항목을 참조하십시오.
Variant Manager for Simulink를 사용하여 모델의 Variant 파라미터를 관리할 수 있습니다.
Variant 파라미터에 대해 생성한 코드에는 가능한 시스템 값이 모두 포함될 수 있습니다. Activate Variant During Different Stages of Simulation and Code Generation Workflow 항목에 설명된 대로 코드를 컴파일하기 전이나 모델을 시작할 때 값 간에 전환할 수 있습니다.
도움말 항목
- Options to Represent Variant Parameters in Generated Code
You can generate the code only for active values or for both active and inactive values of variant parameters in Simulink.
- Improve Code Readability of Variant Parameters Using Enumerated Types
You can use enumerated types to improve code readability of variant control values in variant parameters.
- Compile Code Conditionally for All Values of Variant Parameters with Same and Different Dimensions
This example shows how to generate a C code that contains all the active and inactive values of variant parameters.
- Run Executable for Different Variant Parameter Values Without Recompiling Code
This example shows how to generate an executable that runs for different set of variant parameter values without needing to recompile the code for each set of values.
- Reuse Variant Parameter Values from Handwritten Code Using Simulink.Parameter Variables
This example shows how to use
variables to generate a code that imports variant parameter values from your existing code.Simulink.Parameter
- Generate Code for Instance-Specific Variation of Variant Parameter Values in Model Reference Hierarchy
Configure instance-specific values for variant parameters in a referenced model.
- Configure Code Generation for Variant Parameters in Model Workspace Using Code Mappings Editor
Learn how to use the Code Mappings editor to configure the code generation attributes for Simulink.VariantVariable and Simulink.VariantControl objects defined in the model workspace of a model.