Main Content

Describe Component Behaviors

Describe architectures with Simulink®, Stateflow®, and Simscape™

Define component behaviors in your architecture models to implement system design.

  • Link components to a Simulink model or subsystem.

  • Add state machine behavior in Stateflow to components.

  • Add physical behavior in Simscape to components.

  • Link components to existing functional mockup units (FMU).

Use parameters, specified as model arguments, to specify instance-specific values on components. Each component linked to the same referenced model or architecture can specify independent values for a parameter.

Classes

expand all

systemcomposer.arch.ComponentSystem Composer component
systemcomposer.arch.ParameterParameter in System Composer (Since R2022b)

Functions

expand all

createSimulinkBehaviorCreate Simulink behavior and link to component
createStateflowChartBehaviorAdd Stateflow chart behavior to component (Since R2021a)
createArchitectureModelCreate architecture model from component (Since R2021b)
createArchitectureSubsystemCreate architecture subsystem from component (Since R2023a)
linkToFMULink component to FMU (Since R2024b)
linkToModelLink component to model
inlineComponentRemove reference architecture or behavior from component
isProtectedFind if component reference model is protected (Since R2021b)
isReferenceFind if component is referenced to another model
getEvaluatedParameterValueGet evaluated value of parameter from element (Since R2022a)
getParameterNamesGet parameter names on element (Since R2022a)
getParameterValueGet value of parameter (Since R2022a)
setParameterValueSet value of parameter (Since R2022a)
setUnitSet units on parameter value (Since R2022a)
resetParameterToDefaultReset parameter on component to default value (Since R2022a)

Tools

Architecture Views GalleryCreate and manage views and sequence diagrams
Parameter EditorAdd, edit, and promote parameters for architectures and components (Since R2022b)
Sequence ViewerVisualize messages, events, states, transitions, and functions (Since R2020b)
Allocation EditorCreate and manage model-to-model allocations (Since R2020b)

Topics

Featured Examples