Main Content

Simulink.BlockDiagram.restoreConfigSet

Restore model configuration for converted models

Description

[isRestored, restoredModels] = Simulink.BlockDiagram.restoreConfigSet(mdl) restores the model configuration for all converted models after propagating a configuration reference from a top model to the referenced models. Execute the function from a writable folder.

example

Examples

collapse all

openExample("simulink/VisualizeModelReferenceHierarchiesExample")
[isRestored,restoredModels] = ...
Simulink.BlockDiagram.restoreConfigSet("sldemo_mdlref_depgraph");

Input Arguments

collapse all

Name of top model, specified as a character vector or a string.

Example: "MyModel"

Output Arguments

collapse all

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

List of restored model names, returned as a cell array of character vectors.

Version History

Introduced in R2012b