How can I migrate enumerated data types between data dictionaries?
古いコメントを表示
I am rearchitecturing the data dictionaries (DD) of my model. the way that worked for me is opening each individual DD and use
exportToFile(sectionObj,fileName)
to export data to a .m file , then run all the files to load data into base workspace, and use the following command
importFromBaseWorkspace(myDictionaryObj, 'existingVarsAction','overwrite');
to import them into the new DD.
the mothod works fine for all data types except enumerted data type definitions (aka 'Simulink.data.dictionary.EnumTypeDefinition').
the question is a way to transfer the enumerted data type definitions between data dictionaries using a script (for reproduction)?
note I am using R2020b
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Manage Design Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!