Main Content

Author System Behaviors

Describe architectures with Simulink®, Stateflow®, and Simscape™ and author system behavior using activity diagrams and sequence diagrams

Define system behaviors in architecture models to determine the purpose of the system and to assess how to design the system.

  • Use activity diagrams in System Composer™ with flows of tokens through actions that operate on objects. Activity diagrams contain action nodes with pins connected by flow lines.

  • Use sequence diagrams integrated with System Composer to describe system behaviors as the interaction between components in a sequence of message exchanges. Sequence diagrams use signal-based and Simulink message-based communication.

Define component behaviors to implement system design.

  • Define component behavior by linking to a Simulink model or a Simulink subsystem.

  • Add state machine behavior in Stateflow to components.

  • Add physical behavior in Simscape to components.

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.


expand all

systemcomposer.interaction.InteractionInteraction (Since R2024a)
systemcomposer.interaction.IteratorIterator utility to navigate interactions (Since R2024a)
systemcomposer.interaction.LifelineLifeline in interaction (Since R2024a)
systemcomposer.interaction.MessageEventMessage end in interaction (Since R2024a)
systemcomposer.interaction.FormalGateLifeline in interaction (Since R2024a)
systemcomposer.interaction.MessageMessage between lifelines in interaction (Since R2024a)
systemcomposer.interaction.FragmentFragment in interaction (Since R2024a)
systemcomposer.interaction.RootFragmentRoot fragment in interaction (Since R2024a)
systemcomposer.interaction.AltFragmentAlternative fragment in interaction (Since R2024a)
systemcomposer.interaction.OptFragmentOptional fragment in interaction (Since R2024a)
systemcomposer.interaction.LoopFragmentLoop fragment in interaction (Since R2024a)
systemcomposer.interaction.SeqFragmentWeak sequencing fragment in interaction (Since R2024a)
systemcomposer.interaction.StrictFragmentStrict sequencing fragment in interaction (Since R2024a)
systemcomposer.interaction.ParFragmentParallel fragment in interaction (Since R2024a)
systemcomposer.interaction.OperandOperand in fragment in interaction (Since R2024a)
systemcomposer.interaction.AnnotationAnnotation in interaction (Since R2024a)
systemcomposer.arch.ComponentSystem Composer component
systemcomposer.arch.ParameterParameter in System Composer (Since R2022b)


expand all

systemcomposer.createActivityCreate System Composer activity diagram (Since R2024a)
openViewsOpen Architecture Views Gallery (Since R2019b)
getInteractionGet interaction in model (Since R2024a)
getInteractionsGet all interactions in model (Since R2024a)
openOpen interaction (Since R2024a)
nextReturn next element in fragment (Since R2024a)
currentReturn the currently visited element of the fragment (Since R2024a)
resetReset the iterator (Since R2024a)
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
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)


Initial NodeDispatch control token at beginning of activity (Since R2024a)
Action NodeProcess object tokens through MATLAB function or nested activity diagram (Since R2024a)
Decision or Merge NodeRoute input tokens based on evaluation of MATLAB expressions, or merge multiple input tokens onto one output flow (Since R2024a)
Join or Fork NodeSynchronize multiple input tokens into one output, or replicate one input token on all output flows (Since R2024a)
Flow Final NodeTerminate one object or control flow (Since R2024a)
Activity Final NodeTerminate entire activity (Since R2024a)


Types EditorCreate custom data types (Since R2024a)
Architecture Views GalleryCreate and manage views and sequence diagrams (Since R2019b)
Parameter EditorAdd, edit, and promote parameters for architectures and components (Since R2022b)
Sequence ViewerVisualize messages, events, states, transitions, and functions (Since R2020b)

Related Information