How can I open my current Simulink models in previous versions of Simulink?
915 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 16 Mai 2011
Modifié(e) : MathWorks Support Team
le 29 Sep 2022
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.
Réponse acceptée
MathWorks Support Team
le 23 Déc 2023
Modifié(e) : MathWorks Support Team
le 29 Sep 2022
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 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!