- 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 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Swarooph
2016-10-14
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!