Store Shared Data in Architectural Data Section
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:
Create a data dictionary.
Design interface, data types, and constants with the Architectural Data Editor.
Link the data dictionary containing architectural data to a Simulink or architecture model.
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 elements shared outside of the context of a particular component or composition and allow multiple team members to define and manage these elements.
Create a data dictionary:
In Model Explorer from the toolbar select File > New > Data Dictionary.
Open the
f14
model, which loads design data into the base workspace.openExample('f14')
In the Model Properties dialog box, select New to create a data dictionary.
Open Architectural Data Editor
To open the editor from a Simulink model already linked to a data dictionary:
In the bottom left of the model, select the Model data icon , and then select External Data. This opens Model Explorer.
In Model Explorer select the Architectural Data node to expose and select the Open Architectural Data Editor button.
To open the editor from outside the context of a model, use one of these methods:
In the MATLAB® Current Folder browser, navigate to and double-click the
.sldd
file to open Model Explorer. Expand the data dictionary file and select Architectural Data, then click Open Architectural Data Editor from the Dialog pane.Use the
show
function on an Architectural Data object created usingSimulink.dictionary.archdata.create
orSimulink.dictionary.archdata.open
.Enter
archdataeditor
at the MATLAB command line.
Add and Configure Data Using Architectural Data Editor
With the Architectural Data Editor, you can create, configure, and manage architectural data.
Create — On the toolstrip, in the Create section, add data type definitions, interfaces, and constants. Data types, interfaces, and constants each have a dedicated tab for data management.
Configure — In the right panel, use the Details pane to configure your data. The Details pane can also display platform-specific properties.
For example, when you open a Simulink data dictionary linked to a model that is mapped to a Native platform, the Details pane displays a Code Generation pane. You can then define Data scope and Header file. For more information on how to determine these settings, see Control File Placement of Custom Data Types (Embedded Coder). To preserve dimensions of bus objects that contain multidimensional bus elements, select the Preserve element dimensions option.
Manage — You can filter, sort, and search data on the Interfaces, Data Types, and Constants tabs.
Link Data Dictionary to Model
To link an existing data dictionary from the Simulink model toolstrip, on the Modeling tab, open the Design gallery and select Link to Data Dictionary. In the Model Properties dialog box, click Browse to select a data dictionary. Select Apply then OK.
For information regarding linking dictionaries to architecture models, see Save, Link, and Delete Interfaces (System Composer).
See Also
Tools
- Architectural Data Editor | Property Inspector | Interface Editor (System Composer) | Profile Editor (System Composer)
Objects
Functions
Related Topics
- Manage Design Data
- Compose Architectures Visually (System Composer)
- Create AUTOSAR Architecture Models (AUTOSAR Blockset)
- Graphically Manage AUTOSAR Architectural Data (AUTOSAR Blockset)