How do I compare or merge my Simulink Data Dictionaries (SLDDs)?

77 views (last 30 days)
I would like to combine two SLDDs into one for use in a Simulink model. How can I compare them and remove duplicate values?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 24 Nov 2020
Edited: MathWorks Support Team on 24 Nov 2020
There are two resources for working with multiple SLDDs: an interactive approach and a programmatic approach.
1. Interactive approach. 
You can compare your two SLDDs using the Comparison Tool. This will allow you to find repeated values and "merge" one set into the other. You can kick off this process either by:
1) Clicking the "Compare" button from the MATLAB desktop and entering the SLDD files, or
2) Selecting both files in the Current Folder browser, right clicking, and selecting "Compare Selected Files/Folder" 
See below for details:
2. The programmatic approach.
SLDDs come with their own programmatic APIs for doing many standard operations like getting/setting parameter values, saving, etc. See the below documentation resource to get started:
https://www.mathworks.com/help/simulink/ug/store-data-in-dictionary-programmatically.html

More Answers (0)

Categories

Find more on Class Introspection and Metadata in Help Center and File Exchange

Tags

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!