How can I open my current Simulink models in previous versions of Simulink?
611 views (last 30 days)
MathWorks Support Team on 16 May 2011
I try to open a Simulink model created with a current version of Simulink in an older version of Simulink, but I encounter the following error:
Error using open
Model 'testModel' was created with a newer version (R2022b) of Simulink
To disable the error message, use Simulink preferences.
To create a model that is compatible with this version of Simulink, load
the model in Simulink R2022b and select Save > Export Model to > Previous
In older Simulink versions, I see the following warning:
Warning: Loading model 'testModel' generated with an earlier
version (2.09) of SIMULINK.
MathWorks Support Team on 29 Sep 2022 at 4:00
Edited: MathWorks Support Team on 29 Sep 2022 at 14:13
The recommended workflow is to export the model to a format of a previous version. To do this:
1. Open the model in the appropriate newer Simulink version, or try Simulink Online.
2. Save it as the required older version model by choosing Save > Export Model to > Previous Version from Simulink Toolstrip.
3. Load the saved model from step 2 above in the selected older Simulink version.
When you export a model to a previous version, the model is saved in the earlier format, regardless of whether the model contains blocks and features that were introduced after that version. See Export Model to Previous Simulink Version for more details regarding compatibility.
In case exporting the model to previous version is not possible, you can disable to error message in the Simulink preferences in the older version. To do this:
1. In MATLAB Toolstrip, on the HOME tab, click Preferences.
2. Select the Simulink pane and click Open Simulink Preferences.
3. Select the Model File pane and scroll down. Uncheck "Do not load models created with a newer version of Simulink".
4. After you open your model from the newer version of Simulink and save a copy of it that is compatible with your current version, it is recommended to reverse this setting.
More Answers (9)
qaqcvc on 29 Aug 2019
Just hope someday the MATLAB will create an automatically transform tool that can be used online. We upload the new version model, and it will transform in cloud, and then we can download the older version. I guess this is not difficult to deliver.
Muhammad Rehman on 2 Oct 2018
if someone dont have the new version, and only have previous version, is there any way to convert. like i have simulink model build in 2018a and i want to open it in 2017b. and i dont have 2018a.
Giuseppe Silano on 13 Jun 2021
Edited: MathWorks Support Team on 10 Aug 2021
Hicham Lhachimi on 17 May 2016
When I do all this steps i don't find the previous versions , i find only 3 choices : Simulink models (*.slx) Simulink models (*.mdl) all files (*.*)
dhruv gajwa on 25 Nov 2019
Edited: Stefanie Schwarz on 29 Sep 2022 at 14:11
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.
HONG CHENG on 4 May 2022
Edited: DGM on 8 May 2022