Main Content

本页的翻译已过时。点击此处可查看最新英文版本。

模型配置集

存储配置参数以用于多个模型或模型变体

配置集是控制模型行为的参数的指定值集。使用配置集可以:

  • 存储模型的多组配置参数值

  • 在不同模型配置之间快速切换

  • 对多个模型使用同一组参数值

函数

全部展开

attachConfigSetAssociate configuration set or configuration reference with model
attachConfigSetCopyCopy configuration set or configuration reference and associate it with model
detachConfigSetDissociate configuration set or configuration reference from model
getActiveConfigSet获取模型的活动配置集或配置引用
getConfigSetGet configuration set or configuration reference from model
getConfigSetsGet names of all of model's configuration sets or configuration references
setActiveConfigSet为模型指定活动配置集或配置引用
Simulink.BlockDiagram.loadActiveConfigSetLoad, associate, and activate configuration set with model
Simulink.BlockDiagram.propagateConfigSetPropagate top model configuration reference to referenced models
Simulink.BlockDiagram.restoreConfigSetRestore model configuration for converted models
Simulink.BlockDiagram.saveActiveConfigSetSave active configuration set of model
set_param设置系统和模块参数值
get_param获取参数名称和值
configset.reference.overrideParameterChange value of parameter in configuration reference
configset.reference.hasOverriddenParametersDetermine if model configuration reference has overridden parameters
configset.reference.getOverriddenParametersParameters that are overridden in a configuration reference
configset.reference.isParameterOverriddenDetermine if parameter is overridden in configuration reference of model
configset.reference.restoreOverriddenParameterRestore overridden parameter in configuration reference of model
configset.reference.restoreAllOverriddenParametersRestore all overridden parameters in configuration referenceof model

全部展开

Simulink.ConfigSet模型配置集
Simulink.ConfigSetRefLink model to freestanding configuration set

主题

为模型设置模型配置参数

使用配置参数控制模型行为。

管理模型的配置集

为模型指定可互换的仿真配置参数集。

在多个模型之间共享配置

使用配置引用在多个模型之间共享配置集。

Share a Configuration Across Referenced Models

Share the configuration set of a top model with the referenced models in the model hierarchy.

使用脚本自动执行模型配置

编写脚本,以编程方式将多个模型配置为使用同一配置集。