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获取模型的活动配置集或配置引用
getConfigSet从模型中获取配置集或配置引用
getConfigSetsGet names of all of model's configuration sets or configuration references
getRefConfigSetGet configuration set from configuration reference
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设置 Simulink 参数值
get_param获取参数名称和值
configset.reference.overrideParameterChange value of parameter in configuration reference (自 R2021a 起)
configset.reference.hasOverriddenParametersDetermine if model configuration reference has overridden parameters (自 R2021a 起)
configset.reference.getOverriddenParametersParameters that are overridden in a configuration reference (自 R2021a 起)
configset.reference.isParameterOverriddenDetermine if parameter is overridden in configuration reference of model (自 R2021a 起)
configset.reference.restoreOverriddenParameterRestore overridden parameter in configuration reference of model (自 R2021a 起)
configset.reference.restoreAllOverriddenParametersRestore all overridden parameters in configuration reference of model (自 R2021a 起)

对象

全部展开

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

主题