Migrate Single Model to Use Dictionary

This example shows how to link a model to a data dictionary and import model design data from the base workspace into the data dictionary.

    Note:   Simulink® does not import simulation data such as Timeseries objects into the data dictionary.

  1. Open the f14 model, which loads design data into the base workspace.

  2. In the Simulink Editor, click File > Model Properties > Link to Data Dictionary.

  3. In the Model Properties dialog box, set Defined in to Data Dictionary and click New to create a data dictionary.

  4. Name the data dictionary, save it, and click Apply.

  5. Click Add path, if you see the message to add the dictionary location to the MATLAB® path.

  6. Click Yes in response to the message that explains how Simulink migrates design data stored in the base workspace.

    A message appears, reporting the number of items imported from the base workspace to the data dictionary.

  7. Click OK in the Model Properties dialog box.

    A notification appears in the Simulink Editor, reporting that your model is now linked to the data dictionary.

  8. In the Simulink Editor, click the data dictionary badge in the bottom left corner to open the dictionary.

  9. Right-click the dictionary node and select Save Changes.

Related Examples

More About

Was this topic helpful?