Why does the “Simulink.?data.upgra?deClasses” function not

Technical Source
2 min readOct 12, 2021

--

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

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?

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

Kshitij Singh answered . 2021–10–11 06:07:31

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.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet