フィルターのクリア

Converting Models from 2015a back to 2012b

1 回表示 (過去 30 日間)
Harish Shekarappa
Harish Shekarappa 2016 年 10 月 14 日
回答済み: Swarooph 2016 年 10 月 14 日
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

採用された回答

Swarooph
Swarooph 2016 年 10 月 14 日
  • 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.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by