Save the Architecture to a separate model
saveAsModel(component,modelName)
saveAsModel(component,modelName) saves the architecture of the component to a separate architecture model and references the model from this component.
component
modelName
collapse all
Save the component robotcomp in Robot.slx and reference the model.
robotcomp
Robot.slx
saveAsModel(robotcomp,'Robot');
The component must have an architecture with definition type composition. For other definition types, this function gives an error.
composition
Data Types: systemcomposer.arch.Component
systemcomposer.arch.Component
Data Types: char
char
inlineComponent | linkToModel
inlineComponent
linkToModel