Link component to a model
modelHandle = linktoModel(component,modelName)
modelHandle = linktoModel(component,modelName) links from the component to a model.
modelHandle
component
modelName
collapse all
Save the component robotcomp in the architecture model Robot.slx and reference it from another component, robotArm so that robotArm uses the architecture of robotcomp.
robotcomp
Robot.slx
robotArm
saveAsModel(robotcomp,'Robot'); linkToModel(robotArm, 'Robot');
The component must have no children.
Data Types: systemcomposer.arch.Component
systemcomposer.arch.Component
An existing model that define the architecture or behavior of the component.
Data Types: char
char
inlineComponent