Generating SysML models from Simulink
This section contains instructions for generating a SysML activity or block structure from a Simulink model reference structure, which should follow the constraints mentioned in the section Rules and Limitations.
- Start with one of the models generated from SysML in a previous step.
- Create a package in SysML as the destination, then launch the Dashboard from that package. Select your local file system repository on the right and expand the top-level Simulink model file. The Simulink model in the file is represented by the icon with a circle, a triangle, and a square. Drag and drop that model element to SysML.
- On the pop-up dialog, select whether you would like to generate a block or activity structure and click OK.
- Once an activity model has been generated, you can compare and see that everything is in sync.
- For block structures, connectors may not resolve until you perform the following steps:
- Create an IBD for each new block that has connectors: Right-Click > Create Diagram > SysML Internal Block Diagram, and then select all ports, parts, and ports on parts
- At this point, later versions of MagicDraw may show an incorrect validation error for the new delegation connectors as shown below. To clear this after creating IBDs for each child element that has connectors, close the dashboard, save the model, close it, and reopen:
- Create an IBD for each new block that has connectors: Right-Click > Create Diagram > SysML Internal Block Diagram, and then select all ports, parts, and ports on parts
Copyright 2018 Intercax.