Sync SysML -> Simulink
This section describes the process for syncing changes in SysML blocks to the connected Simulink model.
- Begin with the connected and synced models from previous test.
- Add the following in the SysML model:
- Copy and paste the PartB1 block from the Bus Models :: Blocks package to the Basic Models :: Blocks package to create PartB2.
- Copy and paste the in2 : Bus_2 port from Bus Models :: Blocks :: System to Basic Models :: Block :: System.
- Display the port on the diagram and then drag PartB2 onto the diagram to create a part property named pB2 and display its ports as well.
- Create a connector between in2 and pB2.in1.
- Delete the following from System block:
- Part Property pA : PartA (which should also delete three Connectors automatically)
- Flow Port in1  : Real
- Compare SysML & Target
- Sync SysML -> Target then open the System Simulink model to see changes/rearrange
- Compare again to see all is in sync
- If you have changes made in a multi-level block structure, you should sync leaf-level blocks BEFORE syncing parent models (except in the case of a new child being added that is not yet connected as shown with pB2 : PartB2 above). For instance, if you add and/or delete ports on PartC block, which is used as part property pC in System, you should compare and sync PartC to resolve changes, then compare and sync the parent block, System.