Import from 2021a to 2020b unsuccessful for simscape electrical blocks

8 ビュー (過去 30 日間)
I am trying to import a 2021a model to a previous year model so that I can eventually run with OPAL-RT. I tried 2020b and 2019a by save -> import to previous year, but for both, the blocks are 'not found' in the previous versions. These are simple blocks such as powergui, three phase AC source etc which are present in my 2020b simulink installation if I add them directly.
The error message in my 2021a command promt when I try the import is below. It is followed by the 'ver' command from 2021a and 2020b, respectively, for confirmation of successful installation of required libraries. Also a snapshot of the unsuccessfully imported file in 2020b.
Also note that some of the examples from which my model is made can run successfully when I open them from 2020b command prompt (eg power_OLTCregtransformer), but my model can't.
How can I fix this?
Error: Export to previous version does not support Specialized Power Systems blocks from Simscape Electrical. (physmod:powersys:library:ExportToPreviousVersion)
C:\Program Files\MATLAB\R2021a\toolbox\physmod\powersys\library\+slexportprevious\+preprocess\SimscapeElectricalSPSBlocks.m,13
C:\Program Files\MATLAB\R2021a\toolbox\simulink\slexportprevious\+slexportprevious\+internal\CallbackDispatcher.p >CallbackDispatcher.runCallbacks,0
C:\Program Files\MATLAB\R2021a\toolbox\simulink\slexportprevious\+slexportprevious\+internal\@PreprocessHelper\PreprocessHelper.p >PreprocessHelper.runPreprocessFunctions,0
C:\Program Files\MATLAB\R2021a\toolbox\simulink\slexportprevious\+slexportprevious\+internal\@PreprocessHelper\PreprocessHelper.p >PreprocessHelper.doPreprocess,0
C:\Program Files\MATLAB\R2021a\toolbox\simulink\slexportprevious\+slexportprevious\+internal\@PreprocessHelper\PreprocessHelper.p >PreprocessHelper.run,0
C:\Program Files\MATLAB\R2021a\toolbox\simulink\slexportprevious\+slexportprevious\+internal\@ExportController\run.p >i_run,0
C:\Program Files\MATLAB\R2021a\toolbox\simulink\slexportprevious\+slexportprevious\+internal\@ExportController\run.p,0
C:\Program Files\MATLAB\R2021a\toolbox\simulink\slexportprevious\+slexportprevious\+internal\exportToVersion.p,0
C:\Program Files\MATLAB\R2021a\toolbox\simulink\slexportprevious\+Simulink\exportToVersion.p,0
C:\Program Files\MATLAB\R2021a\toolbox\simulink\core\general\+Simulink\ExportModel.p,0
C:\Program Files\MATLAB\R2021a\toolbox\simulink\ui\studio\config\m\+SLStudio\FileMenu.p,0
%%%%%%%%%%%%%%%%%%%%%%%%
ver command
%%%%%%%%%%%%%%%%%%%%%%%%
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.10.0.1602886 (R2021a)
MATLAB License Number: 621625
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 18363)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.10 (R2021a)
Simulink Version 10.3 (R2021a)
Deep Learning Toolbox Version 14.2 (R2021a)
Reinforcement Learning Toolbox Version 2.0 (R2021a)
Simscape Version 5.1 (R2021a)
Simscape Electrical Version 7.5 (R2021a)
Statistics and Machine Learning Toolbox Version 12.1 (R2021a)
Symbolic Math Toolbox Version 8.7 (R2021a)
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.9.0.1592791 (R2020b) Update 5
MATLAB License Number: 621625
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 18363)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.9 (R2020b)
Simulink Version 10.2 (R2020b)
Simscape Version 5.0 (R2020b)
Simscape Electrical Version 7.4 (R2020b)
  1 件のコメント
Priya Thekkumparambathmana
Priya Thekkumparambathmana 2021 年 7 月 28 日
A follow up example to the question above, even a very simple model with the powergui block is not getting imported from 2021a to 2020b.

サインインしてコメントする。

採用された回答

Joel Van Sickel
Joel Van Sickel 2021 年 8 月 3 日
Hello Priya,
unfortunately this is not a bug. Exporting specialized power systems modesl backwards in matlab versions is not supported. You will either have to repair the models by replacing the broken library blocks with the equivalent 2020b versions or continue to work in 21a.
Regards,
Joel
  2 件のコメント
Priya Thekkumparambathmana
Priya Thekkumparambathmana 2021 年 8 月 3 日
編集済み: Priya Thekkumparambathmana 2021 年 8 月 3 日
Thank you for clarifying. That is extremely unfortunate and certainly inconvinient. Will this be a continued trend for 2021b and onward?
Me and my colleagues have been able to import from 2020 all the way back to 2016. And my model had very simple components, one of them had just a power gui block.
Joel Van Sickel
Joel Van Sickel 2021 年 8 月 3 日
This is specific to specialized power systems being merged into simscape electrical (2020b) . I cannot speak to future direction of the product in regard to this feature.

サインインしてコメントする。

その他の回答 (2 件)

Souarv De
Souarv De 2021 年 10 月 10 日
Yes priya, I completly agree with you. This is really very unfortuate for the users to use R2021a. Same problem happening with me also. If I know this major problem beforehand, I no longer download thsi and recommand others to install the higher version than R2020.

Farzad Farajizadeh
Farzad Farajizadeh 2022 年 7 月 13 日
編集済み: Farzad Farajizadeh 2022 年 7 月 13 日
That shows how the MATLAB team is becoming unprofessional in supporting their product.
I faced the same issue, and I realized that along with too many unecessary and trouble-making updates, they also changed and rearranged the libraries (more specifically Simscape) without considering that some users may need to switch between different versions of the software.
I hope the leader of this team, or whoever is responsible for that, will hear this voice and stop doing these unprofessional improvisations!
  1 件のコメント
Lakshmi Srinivas Vedantham
Lakshmi Srinivas Vedantham 2022 年 7 月 24 日
Completely agree with this.
The MATLAB development team is becoming so unprofessional in such issues. They are not even aware of the future consequences while upgrading the version of matlab.
I am thoroughly discouraged to use matlab after seeing such kind of irrelavent and incompatible updates. Really hate the development team who has made this worst update

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeElectrical Sensors についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by