Why does the "Simulink.​data.upgra​deClasses" function not upgrade the Level-1 data classes that I have when using Simulink 8.2 (R2013b)?

1 回表示 (過去 30 日間)
I have a Level-1 data class and need to upgrade to a Level-2 data class for my version of MATLAB. I am following the following documentation:
https://www.mathworks.com/help/simulink/ug/upgrading-level-1-data-classes-to-level-2.html
I get a message saying that all Level-1 data classes are upgraded after running the following command:
>> Simulink.data.upgradeClasses('C:\MyDataClasses')
However, my data class is still Level-1. I can see the level-1 data class in the "cscdesigner", so why does this command not recognized my class and why does the "Simulink.data.upgradeClasses" function not upgrade the Level-1 data classes that I have?

採用された回答

MathWorks Support Team
MathWorks Support Team 2021 年 2 月 25 日
編集済み: MathWorks Support Team 2021 年 2 月 25 日
If the level-1 data class has been loaded by a model, the upgrade function will not have access to the Level-1 data class to upgrade it.
You can check if the class has been loaded by inspecting the Custom Storage Class Designer by entering the following command at the MATLAB Prompt.
   >> cscdesigner
If the level-1 package appears here in the "Select Package" drop-down list, you will not be able to upgrade as the package has been loaded into the MATLAB environment.
To resolve this issue:
 
1) Move the data class to a new folder.
2) Restart MATLAB to ensure no data classes are loaded. 
3) Execute the following command at the MATLAB Prompt to upgrade all your level-1 data class packages.
  >> Simulink.data.upgradeClasses. ('C:\MyDataClasses') 
4) Move the level-2 data class to the necessary folder and delete (or remove) the old level-1 data class.
 

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Logging についてさらに検索

タグ

タグが未入力です。

製品


リリース

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by