Main Content

Simulink.BlockDiagram.propagateConfigSet

Propagate top model configuration reference to referenced models

Description

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

example

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

example

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

example

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

example

Examples

collapse all

openExample("simulink/VisualizeModelReferenceHierarchiesExample")
[isPropagated,convertedModels] = ...
Simulink.BlockDiagram.propagateConfigSet('sldemo_mdlref_depgraph')
openExample("simulink/VisualizeModelReferenceHierarchiesExample")
[isPropagated,convertedModels] = ...
Simulink.BlockDiagram.propagateConfigSet(...
'sldemo_mdlref_depgraph','include',...
{'sldemo_mdlref_heater','sldemo_mdlref_house'})
openExample("simulink/VisualizeModelReferenceHierarchiesExample")
[isPropagated,convertedModels] = ...
Simulink.BlockDiagram.propagateConfigSet(...
'sldemo_mdlref_depgraph','exclude',...
{'sldemo_mdlref_heater','sldemo_mdlref_house'})
openExample("simulink/VisualizeModelReferenceHierarchiesExample")
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: ‘MyModel’

Referenced models to include or exclude in propagation, specified as a cell array of character vectors or a string array.

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

Output Arguments

collapse all

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

Converted models, returned as a cell array of character vectors.

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

Version History

Introduced in R2012b