Simulink System Composer Dictionary Create Constraints

조회 수: 9 (최근 30일)
Melih
Melih 2023년 9월 29일
답변: Alan 2023년 10월 9일
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
Josh Kahn
Josh Kahn 2023년 10월 2일
Hi @Melih,
I tried to reproduce this error but I couldn't. I tried having a duplicate dictionary name and a duplicate file name that is not a dictionary. Are you able to readily reproduce this? Can you share the source material with us?
Josh

댓글을 달려면 로그인하십시오.

답변 (1개)

Alan
Alan 2023년 10월 9일
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.

카테고리

Help CenterFile Exchange에서 System Composer에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by