- To automate the model exporting process, you can use the save_system command and a MATLAB script to run through all the models and model references and export them to a previous version. Take a look at its documentation here. The documentation page Programmatic Modeling Basics might also be useful to understand the Simulink API to work with models from MATLAB. Although this not directly talk about exporting as an operation it does talk about a few programmatic fundamentals.
- I am not sure why you are seeing that error regarding the delay block and the sample time not accepting -1. I looked at the shipping demo model ex_delay_block_varsize_for_sample_based_mode and was able to run that model in R2012b despite the delay block setting the sample time to -1 and inheriting from upstream blocks. This leads me to believe this issue is specific to your model. I would use the sample time colors utility to debug what's going on. Take a look at the documentation here.
Converting Models from 2015a back to 2012b
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Harish Shekarappa
el 14 de Oct. de 2016
Respondida: Swarooph
el 14 de Oct. de 2016
Hi, I need to convert the Models developed using R2015a 64bit to previous version R2012b 32bit. I used the export option to save it to previous version. The model saves but after opening it in 2012b it throws the following errors 1) Error while bringing model references of model up to date, I updated the referenced model to 2012b and updated the reference accordingly. 2) Its asking a discrete value for Delay sample time and its not taking the -1.
Also I would like to get this process automated for all the models in Directory and subdirectories
Thanks, Harish S
0 comentarios
Respuesta aceptada
Swarooph
el 14 de Oct. de 2016
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!