MATLAB Answers

What is a 'Code Dictionary'?

16 ビュー (過去 30 日間)
Jonas 2020 年 6 月 16 日
コメント済み: Jonas 2020 年 6 月 16 日
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,

  0 件のコメント



Fangjun Jiang
Fangjun Jiang 2020 年 6 月 16 日
編集済み: Fangjun Jiang 2020 年 6 月 16 日
For R2019a, here is the document reference
web(fullfile(docroot, 'ecoder/ref/embeddedcoderdictionary.html'))
Or Embedded Coder Dictionary on the web for R2020a

  1 件のコメント

Jonas 2020 年 6 月 16 日
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!


その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by