Store Shared Data in Architectural Data Section - MATLAB & Simulink (original) (raw)

Main Content

The Architectural Data section of a Simulink® data dictionary enables interfaces, data types, and constants to be authored, managed, and shared between components and compositions modeled in Simulink. The Architectural Data section provides scalability for system-level and multicomponent designs by containing these shared elements in a central location. For programmatic workflows related to the Architectural Data section, see Store Data in Architectural Data Section Programmatically.

You can configure architectural data and apply your changes to a model using this basic workflow:

  1. Create a data dictionary.
  2. Design interface, data types, and constants with the Architectural Data Editor.
  3. Link the data dictionary containing architectural data to a Simulink or architecture model.
  4. Apply architectural data to a model in the Simulink environment.

Design and Save Architectural Data in Data Dictionary Using Architectural Data Editor

You can create data dictionaries in Model Explorer, directly from Simulink models, or from the Architectural Data Editor. Once you have a data dictionary loaded you can begin configuring the Architectural Data section.

You can add and edit architectural data using the Architectural Data Editor. This tool allows you to author data types, interfaces, constants and their properties shared outside of the context of a component or composition.

Create a data dictionary:

Open Architectural Data Editor

To open the editor from a Simulink model already linked to a data dictionary:

  1. In the bottom left of the model, select the Model data icon Model data, and then select External Data. This opens Model Explorer.
  2. In Model Explorer select the Architectural Data node to expose and select the Open Architectural Data Editor button.
    Model Explorer with the architectural data node selected.

To open the editor from outside the context of a model, use one of these methods:

The standalone Architectural Data Editor with an interface selected. The Code Generation section includes the Data scope property Auto.

Add and Configure Data Using Architectural Data Editor

With the Architectural Data Editor, you can create, configure, and manage architectural data.

To link an existing data dictionary from the Simulink model toolstrip, on the Modeling tab, open theDesign gallery and select Link to Data Dictionary. In the Model Properties dialog box, click Browse to select a data dictionary. SelectApply then OK.

For information regarding linking dictionaries to architecture models, see Save, Link, and Delete Interfaces (System Composer).

See Also

Tools

Objects

Functions

Topics