How can I open my current Simulink models in previous versions of Simulink?
324 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2011-5-16
编辑: MathWorks Support Team
2022-9-29
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
Version.
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
2023-12-23
编辑:MathWorks Support Team
2022-9-29
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.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!