Create a Simulink model and link component to it
createSimulinkBehavior(component,modelName)
createSimulinkBehavior(component,modelName) creates a new Simulink® model with the same interface as the component and links the component to the new model. This method works only if the component has no children.
component
modelName
collapse all
Create a Simulink behavior model for the component robotcomp in Robot.slx and link the component to the model.
robotcomp
Robot.slx
createSimulinkBehavior(robotcomp,'Robot');
The component must have no children.
Data Types: systemcomposer.arch.Component
systemcomposer.arch.Component
Name of the Simulink model created by this function.
Data Types: char
char
linkToModel