Main Content

Describe Component Behaviors

Define component behaviors 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).

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

Blocks

ComponentAdd components to architecture model
Reference ComponentLink to architectural definition or Simulink behavior

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)
linkToModelLink component to model
linkToFMULink component to FMU (Since R2024b)
inlineComponentRemove reference architecture or behavior from component
isFMUDetermine component link to Functional Mockup Unit (FMU) (Since R2024b)
isProtectedDetermine component reference model is protected (Since R2021b)
isReferenceDetermine component reference 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