管理变体建模组件
变体管理器是一种工具,它允许您可视化模型层次结构,并集中管理变体元素的使用,如整个层次结构中 Stateflow® 图中的变体模块和变体转移。
该工具作为名为 Variant Manager for Simulink® 的支持包提供,具有以下主要功能:
变体管理器 - 可视化模型层次结构,管理整个层次结构中变体元素的使用,以及创建和管理变体配置。
变体简化器 - 生成仅包含所选变体配置的简化模型。
变体分析器 - 比较和对比变体配置以标识错误或不一致的情况。
类
Simulink.VariantConfigurationData | Create variant configurations programmatically |
Simulink.VariantConfigurationAnalysis | Analyze variant configurations programmatically |
函数
Simulink.VariantManager.activateModel | Validate and activate variant blocks in model hierarchy (自 R2022b 起) |
Simulink.VariantManager.updateModel | Obtain model compilation information and activate variant blocks in model hierarchy (自 R2024b 起) |
Simulink.VariantManager.applyConfiguration | Apply specified variant configuration to model (自 R2022b 起) |
Simulink.VariantManager.findVariantControlVars | Find variables used in variant control expressions |
Simulink.VariantManager.generateConfigurations | Generate variant configurations automatically (自 R2022b 起) |
Simulink.VariantManager.getConfigurationData | Get variant configuration data object associated with model (自 R2022b 起) |
Simulink.VariantManager.getPreferredConfigurationName | Get name of preferred variant configuration for model (自 R2022b 起) |
Simulink.VariantManager.reduceModel | Generate reduced model for specified variant configurations |
主题
- Variant Configurations
Use variant configurations to represent combination of variant choices across model hierarchy.
- Create and Activate Variant Configurations
Create and activate variant configurations for a model.
- Compose Variant Configurations for Top Model Using Referenced Model Configurations
Use referenced model configuration to set up variant configuration for a top-level model.
- Save and Reuse Variant Configurations Using Variant Configuration Data Object
Save and load variant configuration data object for a model.
- Generate Variant Configurations Automatically
Generate all possible variant configurations for a model.
- Variant Manager Workflow to Set Up Variant Configurations for Models
Workflow diagram to set up variant configurations for a model.
- Variant Manager Workflow to Manage Existing Variant Configurations in Models
Workflow diagram to manage existing variant configurations for a model.
- Reduce Variant Models Using Variant Reducer
Generate reduced models that contain a subset of the available variant configurations.
- Analyze Variant Configurations in Models Containing Variant Blocks
Analyze and compare variant configurations for a model containing variant blocks.