How can I open my current Simulink models in previous versions of Simulink?
913 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 16 de Mayo de 2011
Editada: MathWorks Support Team
el 29 de Sept. de 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.
Respuesta aceptada
MathWorks Support Team
el 23 de Dic. de 2023
Editada: MathWorks Support Team
el 29 de Sept. de 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 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!