This example shows how to partition a data dictionary into reference dictionaries that can be shared in a team. A Simulink® data dictionary permanently stores model data including MATLAB® variables, data objects, and data types.
Open the Model Explorer. In the Simulink Editor, in the Modeling tab, click Model Explorer.
Select File > Open.
Browse and locate your dictionary.
Use a reference dictionary to store a subset of entries from the main dictionary.
Select File > New > Data Dictionary.
Name the reference dictionary and save it.
Both dictionaries appear as nodes in the Model Hierarchy pane.
In the Model Hierarchy pane, select the dictionary that serves as the parent.
In the dialog box pane, in the Referenced Dictionaries section, click Add Reference. Browse to the location of the reference dictionary and add it as a reference.
In the Model Hierarchy pane, select the Design Data node of the parent dictionary.
In the Contents pane, select the entries you want to move to the reference dictionary.
For one of the selected entries, set DataSource to the reference dictionary using the dropdown menu. You can also drag and drop entries between dictionaries.
To make the DataSource column visible, click
Show Details in the
Contents pane. In the text box, enter
DataSource, and add
to the list of displayed columns.
Click the name of the DataSource column to sort the entries by the dictionaries that define them.
Right-click the name of the DataSource column and select Group by This Column to group the entries. The Contents pane creates a group for each dictionary that defines the entries.