Sync SysML -> Simulink

This section describes the process for syncing changes in SysML blocks to the connected Simulink model.

  1. Begin with the connected and synced models from previous test.

  2. Add the following in the SysML model:
    1. Copy and paste the PartB1 block from the Bus Models :: Blocks package to the Basic Models :: Blocks package to create PartB2.
    2. Copy and paste the in2 : Bus_2 port from Bus Models :: Blocks :: System to Basic Models :: Block :: System.
    3. 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.
    4. Create a connector between in2 and pB2.in1.



  3. Delete the following from System block:
    • Part Property pA : PartA (which should also delete three Connectors automatically)
    • Flow Port in1  : Real



  4. Compare SysML & Target



  5. Sync SysML -> Target then open the System Simulink model to see changes/rearrange



  6. Compare again to see all is in sync



  7. 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.