I am programmatically editing some entries in referenced data dictionaries (opened via top-level data dict). As such, I do not have the handles for the individual referenced data dictionaries and only the top level one.
Is there a way to find the handles for all the loaded data dictionaries? Currently, I am trying to use Simulink.data.dictionary.getOpenDictionaryPaths to find the open data dictionaries then reopen them with Simulink.data.dictionary.open but that is failing. This is only an issue on one specific computer and works on the other ones I have tested it on.

댓글 수: 3

Julian
Julian 2025년 7월 25일
편집: Walter Roberson 2025년 7월 25일
@Curve Rush, Use the following code to get handles for all open data dictionaries, including referenced ones:
paths = Simulink.data.dictionary.getOpenDictionaryPaths;
handles = cellfun(@Simulink.data.dictionary.open, paths, 'UniformOutput', false);
If it fails on one computer, check for file access issues or permissions. Add a try-catch block to identify problematic files.
Ynukre
Ynukre 2025년 11월 17일
I have used the new linker, which seems to have reduced the issue
Elsa
Elsa 2026년 1월 14일
편집: Elsa 2026년 1월 14일
I’ve used the new linker, which appears to have reduced the issue.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Manage Design Data에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2025년 7월 24일

편집:

2026년 1월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by