Does not Contain a Valid Simulink Model in SLX Format
153 ビュー (過去 30 日間)
古いコメントを表示
I started up MATLAB today and opened Simulink and noticed that my simulink model was not in the recent file list. I then went to the location of my Simulink project and attempted to open the SLX file manually, it threw an error like the one attached below: "Does not contain a valid simulink model in SLX format".
I had a look online but it seems to a few people had this issue, I then attempted to carry out the following solutions as the posts stated.
1) I copied and pasted the whole project to my C Drive and tried to run from there, same error - therefore not a path issue.
2) I tried to see if MATLAB could read this file with Fopen, this returned -1 indicating it could not be read. I then copied the folder and went to another computer and tried to open it, exact same story and same error.
3) I tried recovering the files from the Recycle Bin, but no luck - the only versions available were after or at the time of the error.
4) I changed the extension to .zip format and attempted to open/extract/repair also no luck.
5) I tried a third party simulink viewer (Diffplug) also no luck.
6) I ran a system check on the hard drive and that also found no errors, it must have been an issue with the way MATLAB closed down or something - either way it is corrupted and I need the model back badly :(
edit: I am running R2017B - Simulink: 9.0
Any help or guidance would be much appreciated!
1 件のコメント
zhongliang hou
2022 年 9 月 22 日
发生背景:保存该文件时蓝屏,再打开时,提示该问题,不是slx文件 解决方案:在该文件的路径下,存在filename.slx.bak文件,将其重命名为filename.slx即可,再打开时不存在此问题
回答 (7 件)
sadanand Chandane
2019 年 11 月 21 日
We encountered with same issue while downgrading model from 2019A to 2015B. We did some work around as mentioned below.
- converted slx of 2019A into mdl of 2015B. (2019A slx -> 2015B mdl)
- Ensured the working (Only simulation) of 2015B mdl file in MATLAB 2015B.
- Saved 2015B mdl file as slx file, and ensured the working of slx file in MATLAB 2015B. (2015B mdl -> 2015B slx)
It worked for us since the model complexity was moderate.
This is fine for us, Since we won't be using 2015B for code generation.
For our knowledge, Please let us know, if anyone encounters the additional issue after following above step.
Regards.
yakout khadouj jelbaoui
2018 年 12 月 8 日
hello ser,
could you help us please if you find the solution I would be very appreciated.
0 件のコメント
ANT R
2019 年 4 月 16 日
hi man,have you solve the problem"Does not contain a valid simulink model in SLX format".?
I also encountered the same problem~_~
0 件のコメント
Azam Bagheri
2019 年 6 月 5 日
編集済み: Azam Bagheri
2019 年 6 月 5 日
Hello all,
I'm working with MATLAB R2019a and I have the same problem as well!
please reply this comment anyone who has found the solution :)!
Thanks
0 件のコメント
Saeed Almaha
2021 年 4 月 27 日
Hello,
I'm trying on opening a simulink model. (*.slx file) However, when I double click on the file, it keeps saying "File '.....' does not contain a valid Simulink model in SLX format : Could not open source package". I tried excecuting exactly the same file on other PC, it desen't worked.
could any one help me??
0 件のコメント
nandhini b
2021 年 5 月 16 日
I too have this problem today. It seems my MATLAB files were corrupted, so I have uninstalled the antivirus and restarted my pc.Now, launch the MATLAB and open the files, you will be able to...Hope it helps..
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Programmatic Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!