createSimulinkBehavior
Create Simulink behavior and link to component
Syntax
Description
createSimulinkBehavior(
creates a new Simulink® model, component
,modelName
)modelName
, with the same interfaces as the
component component
and links the component to the new model. The
component must have no children.
Note
Components with physical ports cannot be saved as architecture models, model references, software architectures, or Stateflow® chart behaviors. Components with physical ports can only be saved as subsystem references or as subsystem component behaviors.
If no functions are present in software architectures, this syntax creates a rate-based behavior. If functions are present, the syntax creates an export-function behavior.
createSimulinkBehavior(
creates a new Simulink model or subsystem behavior, component
,modelName
,"Type",type
)modelName
, with the same
interfaces as the component component
and links the component to the
new model. For more information, see Create Referenced Simulink Behavior Model.
Use this syntax to convert a subsystem component to a subsystem reference.
createSimulinkBehavior(
creates a subsystem component behavior that is part of the parent model. The connections,
interfaces, requirement links, and stereotypes of the component are preserved. The component
must have no subcomponents and must not already be linked to a model. For more information,
see Create Simulink Behavior Using Subsystem Component.component
,"Type",type
)
Examples
Input Arguments
More About
Version History
Introduced in R2019a