Opening a simulink file that was saved in R2018b version onto a R2017b version.

조회 수: 37 (최근 30일)
Hi guys, I have a Simulink file which was saved in the R2018B version of MATLAB, however, I only have access to the R2017B version of MATLAB. Is there any way for me to access the R2018b file? I do not have the R2018b version of MATLAB at all.
  댓글 수: 4
Walter Roberson
Walter Roberson 2018년 11월 14일
In theory it is possible .
If it is a mdl file then it is a text file that you can edit to change the version information .
If it is a slx file then you can unzip it to extract a directory of xml files . You can edit one of the xml files to change the version information and then you can zip it back up into a slx again .
Aidil AA
Aidil AA 2018년 11월 14일
mine is a slx file. thank you I will give it a shot.

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

채택된 답변

Gavin Walker
Gavin Walker 2018년 12월 3일
Simulink has a preference, in the Model File section, called "Do not load models created with a newer version of Simulink". You can temporarily turn this off rather than edit the model files to change version numbers.
If the model uses only basic blocks then it might be possible to load it in R2017b, but it could also crash MATLAB. As others have commented, using the "Export to Previous Version" feature is the supported way to take a model from a later release to an earlier one.
Remember to turn the preference "Do not load models created with a newer version of Simulink" back on afterwards.
  댓글 수: 1
Vaishnavi V
Vaishnavi V 2020년 10월 18일
Thank you, it worked, but it showed warnings, I tried to open 2018a version file in 2016a version, I turned off "Do not load models created with a newer version of Simulink", The file opened with several warnings. Then I it did not run and showed an error, due to the file conversion, Then I followed this thread, converting through online
In this I was able to convert to 2016a version and able to run in 2016a version without errors

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

추가 답변 (3개)

madhan ravi
madhan ravi 2018년 11월 14일
편집: madhan ravi 2018년 11월 14일
  댓글 수: 2
Aidil AA
Aidil AA 2018년 11월 14일
thank you, but i have already read that before posting this question. the problem I have is that I do not have access to the newer model of MATLAB at all. I only have the r2017b version.
madhan ravi
madhan ravi 2018년 11월 14일
편집: madhan ravi 2018년 11월 14일
so better is to upgrade to 2018b

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


Gijs van Oort
Gijs van Oort 2019년 11월 20일
Be careful with this. I have some experience with very bad things happening. I don't remember which Simulink versions were involved in that (probably 2015/2016?), and I don't even remember if we tried to load the model into an older or a newer Simulink version.
The problem was that, in comparison blocks (comparing two inputs, and you could set the operator to be one of <, <=, ==, >=, >, != ), the wrong operator was chosen. So, when opened with one (the correct) version of Simulink, the block was a X<Y block, and when opened with the other version of Simulink, the block suddenly became a X==Y block (I don't remember which operators were involved, but you get the idea).
The worst part is that no error or warning message at all was generated.

HONG CHENG
HONG CHENG 2022년 5월 4일
You can follow this link and hope this can help you

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by