Prev Next

Modeling for Simulink

For modeling diagrams that can be exported to Simulink you have drag-and-drop access to common built-in Simulink library blocks directly through Enterprise Architect patterns, or you can reference your own custom built blocks with stereotype parameters under the SysPhS standard.

Simulink can be used to model Signal flow; that is, one Block sends a piece of information to another Block. This means, for Simulink modeling, all Ports must have a direction defined as either in or out. Item Flows between Ports must match the in/out directions. (Note that Modelica supports modeling of either Signals or physical systems.)


In order to conform with the unidirectional requirements of Simscape:

  • Ports must have direction defined as either 'in' or 'out'
  • Ports must be connected consistent with their direction; for example, an 'in' Port cannot be connected to another 'in' Port
  • Constraint parameters will be considered to be variables unless specified as stereotype ‘PhSConstant’ (or set to SimConstant in the Configure SysML Simulation window)
  • Constraint equations must have a single term on the left-hand-side (lhs) of the equals sign, and this term must be either an output or a derivative


Sparx Systems provide a YouTube video of performing a SysML StateMachine Simulation in Simulink. See:


  • Simulink will only allow the output Ports to be plotted; there could be a future enhancement to allow other variables to be plotted too - note that an input Port is inherently the same as the output Port that connects to it

Learn More