On this page

Introduction

The «SimulinkBlock», «SimulinkParameter» and  «SimulinkPort» stereotypes are created to specify which SysML properties (including ports) of its blocks correspond to Simulink library reusable component. The semantics of these elements are given by the corresponding elements in the Simulink libraries.  For more details, read the OMG SysPhS specification.

The figure below shows how the «SimulinkBlock», «SimulinkParameter» and «SimulinkPort» stereotypes are defined in the SysML profile. 

Simulink stereotypes.

Using «SimulinkBlock» stereotype

Apply the «SimulinkBlock» stereotype for a Block to reference its Part Properties with an equivalent component in Simulink. The value of the name tag must be a type of a Simulink Block (e.g. "Trigonometry").

The «SimulinkBlock» stereotype is applied to the Sin Block and a reference is created to the corresponding component in the Simulink library.

You can also reference an already existing Simulink Model. To do that, set the "name" tag to "ModelReference", and the "url" tag to the name of the Simulink file.

When exporting a SysML element to a Simulink file, you can have the <<SimulinkBlock>> stereotype automatically applied to the Block. In such a case, the "name" and the "url" tags are automatically filled. When a part of this Block is exported, a reference to an already exported Simulink file is created instead of a full part export.


Using «SimulinkParameter» stereotype

Apply the «SimulinkParameter» stereotype for a Value Property to reference it with an equivalent parameter of a Simulink library. The stereotyped Value Property must be owned by a Block stereotyped by «SimulinkBlock». The value of the name tag is the name of the corresponding parameter, and the value attribute gives the value of this parameter. If the value is empty, the value of the parameter must be given using the initial values of the stereotyped property. If the name tag is empty, the property name will be used instead.

In the following image, the «SimulinkParameter» stereotype is applied for the "operator" Value Property under the "Sin" Block described in the previous section. This property defines which Trigonometry operator is used on Simulink.

The «SimulinkBlock» Sin owns operator Value Property stereotyped by «SimulinkParameter» with a reference to the Simulink library component.

Using «SimulinkPort» stereotype

Apply the «SimulinkPort» stereotype for a port to reference it with an equivalent port in the Simulink library. The stereotyped port must be owned by a Block with the «SimulinkBlock» stereotype applied. The value of the name tag gives the name of the corresponding port in the Simulink library. 

The «SimulinkBlock»  Ground owns p Proxy Port stereotyped by «SimulinkPort» with a reference to the Simulink library component.