Simulink.BlockDiagram.propagateConfigSet

Propagate top model configuration reference to referenced models

Description

example

[isPropagated, convertedModels] = Simulink.BlockDiagram.propagateConfigSet(model) propagates the configuration reference for model to all referenced models. Execute the function from a writable folder.

example

[isPropagated, convertedModels] = Simulink.BlockDiagram.propagateConfigSet(model, 'include', refModels) propagates the configuration reference for model to the models in the refModels list. Execute the function from a writable folder.

example

[isPropagated, convertedModels] = Simulink.BlockDiagram.propagateConfigSet(model, 'exclude', refModels) propagates the configuration reference for model to all referenced models in the hierarchy except for the models in the refModels list. Execute the function from a writable folder.

example

handle = Simulink.BlockDiagram.propagateConfigSet(model, 'gui') opens the Configuration Reference Propagation to Referenced Models dialog box.

Examples

collapse all

[isPropagated,convertedModels] = ...
Simulink.BlockDiagram.propagateConfigSet('sldemo_mdlref_depgraph')
[isPropagated,convertedModels] = ...
Simulink.BlockDiagram.propagateConfigSet(...
'sldemo_mdlref_depgraph','include',...
{'sldemo_mdlref_heater','sldemo_mdlref_house'})
[isPropagated,convertedModels] = ...
Simulink.BlockDiagram.propagateConfigSet(...
'sldemo_mdlref_depgraph','exclude',...
{'sldemo_mdlref_heater','sldemo_mdlref_house'})
Simulink.BlockDiagram.propagateConfigSet(...
'sldemo_mdlref_depgraph','gui')

Input Arguments

collapse all

Top model with configuration reference to propagate, specified as a character vector or string scalar.

Example: ‘mdl’

List of referenced models to be included or excluded in propagation, specified as a cell array of character vectors or string array.

Example: {‘mdl1’,’mdl2’,’mdl3’}

Output Arguments

collapse all

Indication of whether configuration reference propagation is successful, specified as a Boolean.

List of converted model names, specified as a cell array of character vectors.

Handle to the Configuration Reference Propagation to Referenced Models dialog box. Returned when you specify the ‘gui’ argument to the function.

Introduced in R2012b