Simulink System Composer Dictionary Create Constraints
显示 更早的评论
I am creating a dictionary from scratch using systemcomposer.createDictionary but get following error messages.
Violated uniqueness constraint.
Error in Simulink.dictionary.archdata.create
Error in systemcomposer.createDictionary
1 个评论
回答(1 个)
Alan
2023-10-9
0 个投票
Hi Melih,
From what I understand, you are trying to create a dictionary by following the following syntax:
>>systemcomposer.createDictionary(“file_directory/dict_name.sldd”);
It is possible that there already exists a dictionary which was created with the same name. Try executing the following command:
>>Simulink.data.dictionary.closeAll
This will close all connections to open data dictionaries created previously. Alternatively, you could try closing a connection of a specific dictionary using:
>>Simulink.data.dictionary.closeAll(“file_directory/dict_name.sldd”)
After that retry creating the dictionary.
Hopefully, this resolves your error.
类别
在 帮助中心 和 File Exchange 中查找有关 System Composer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!