Main Content

Extract Architecture from Simulink Model

You can use System Composer™ architecture editing and analysis capabilities on Simulink® models. To do so, extract the architecture from a Simulink model. Model and Subsystem blocks, as well as all ports in a Simulink model represent architectural constructs, while all other blocks represent some kind of dynamic or algorithmic behavior. In the architecture model that you obtain from a Simulink model, you can choose to represent architectural constructs or link to behavior models.

  1. Open an example model.

    openExample('ReferenceFilesForCollaborationExample')

  2. On the Simulation tab, click the Save arrow. From the Export Model To list, select Architecture Model.

    Menu option under down arrow for the save icon, specifies export model to architecture model.

  3. Provide a name and path for the architecture model.

    Export to architecture model dialog specifying source model, architecture model name, and destination folder. Options are cancel and export.

  4. Click Export. A System Composer Editor window opens with an architecture model corresponding to the Simulink model.

    Exported model in a system composer window displayed as an architecture model.

Each subsystem in the Simulink model corresponds to a component in the architecture model so that the hierarchy in the architecture model reflects the hierarchy of the behavior model.

The requirements for subsystems and Model blocks in the Simulink model are preserved in the architecture model.

Any Model block in the Simulink model that references another model corresponds to a component that links to that same referenced model.

Simulink to System Composer conversation diagram.

Buses at subsystem and Model block ports, as well as their dictionary links are preserved in the architecture model.

You can use the exported model to add architecture-related information such as interface definitions, nonfunctional properties for model elements and analyze the design.

See Also

Related Topics