What is a 'Code Dictionary'?

6 views (last 30 days)
Jonas
Jonas on 16 Jun 2020
Commented: Jonas on 16 Jun 2020
Hi all
I want to add a reference of a data dictionary to another data dictionary, but I am getting the following error:
I have never heard of a 'Code dictionary' and cannot seem to find any documentation online. What does this error mean? I was thinking it may direct to the 'Embedded Code Dictionary' but I cannot figure it out.
Thanks for the help!
With kind regards,
Jonas

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 16 Jun 2020
Edited: Fangjun Jiang on 16 Jun 2020
For R2019a, here is the document reference
web(fullfile(docroot, 'ecoder/ref/embeddedcoderdictionary.html'))
Or Embedded Coder Dictionary on the web for R2020a
  1 Comment
Jonas
Jonas on 16 Jun 2020
I have found mentioning of this error in the documentation:
Opening Code Perspective Generates Error
In a hierarchy of referenced data dictionaries (see Dictionary Referencing (Simulink)), only one dictionary can store code generation definitions in an Embedded Coder Dictionary. When you open the Code perspective in a model that has access to multiple Embedded Coder Dictionaries through referenced data dictionaries, Simulink generates an error. To resolve the error, use coder.dictionary.move and coder.dictionary.remove to transfer and delete Embedded Coder Dictionaries until only one exists in the dictionary hierarchy. If necessary, store the Embedded Coder Dictionary in a standalone, shared data dictionary as described in Share Embedded Coder Dictionary Definition Between Models.
I will try the commands to remove the dictionaries. Honestly it is quite a lackluster way of working and poorly documented.
Many thanks!

Sign in to comment.

More Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!