Parametric diagram to Simulink mapping (Integration for MATLAB Simulink)
A SysML Parametric Diagram in Modeler maps to a Simulink model and its Simulink block diagram:
You can create a Simulink model and its block diagram from a Modeler Parametric Diagram.
You can create a Modeler Parametric Diagram from a Simulink model and its block diagram.
After a Modeler Parametric Diagram is synchronized with a Simulink model and its block diagram, you can update the Simulink model from its associated Modeler Parametric Diagram, and update the Modeler Parametric Diagram from its associated Simulink model. For more information, see the related links section below.
When exporting a Parametric Diagram to a Simulink model, the diagram's Constraint Properties, Constraint Parameters, Value Properties and Connectors can be exported:
A Parametric Diagram is exported as a Simulink model and its block diagram.
A Constraint Property is exported as a SubSystem or ModelReferences.
You can choose how each Constraint Property is exported through the options on the Default Object Type Mapping and Item Mapping Definitions pages of Integration for MATLAB Simulink. Tell me more...
* 
If you choose to export Constraint Properties as ModelReferences, child Constraint Parameters of exported Constraint Properties will not be exported because ports cannot be added to ModelReferences in Simulink.
A Constraint Parameter can be exported as an inport or outport:
If the Constraint Parameter is owned by the Block or Constraint Block that owns the Parametric Diagram, the Constraint Parameter is exported.
On the Parametric Diagram, if the Constraint Parameter is shown on a Constraint Property, the Constraint Parameter is exported only if that Constraint Property's type (a Constraint Block) owns a Parametric Diagram that shows the Constraint Parameter.
If the direction of a Constraint Parameter is set to in, by default it is exported as an inport. If the direction of a Constraint Parameter is set to out, by default it is exported as an outport. If the direction of a Constraint Parameter is set to Not Defined, the options you set on the Item Mapping Definition pages determine whether it is exported as an inport or outport.
* 
You can set the direction of a Constraint Parameter on a Parametric Diagram - right-click the Constraint Parameter, point to Set, and then click Parameter Direction.
A Value Property (Block Property of type Value) is exported as a DataStoreRead and an associated DataStoreMemory or as a DataStoreWrite and an associated DataStoreMemory.
You can choose how each Value Property is exported through the options on the Default Object Type Mapping and Item Mapping Definitions pages of Integration for MATLAB Simulink.
* 
The name of the DataStoreMemory is that of the DataStoreRead or DataStoreWrite suffixed with _DSM.
A Connector that links two exported Constraint Parameters can be exported as a line.
A Connector is exported only if one Constraint Parameter it links is exported as an inport, and the other Constraint Parameter it links is exported as an outport.
Was this helpful?