フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Simulation difference between r2007b and r2012b

1 回表示 (過去 30 日間)
Matthieu
Matthieu 2012 年 11 月 30 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello,
i recently received a new licence for r2012b and i am using simulink models that were developped and used with r2007b.
In particular i have a problem with a small function (which calculates a sliding average when activated and with an external sample number) that we developped using an 'Enable Subsystem' and 'SwitchCases' and Switchcase Action subsystems --> Even if the parameters and models are exactly the same, the outputs of r2007b and r2012b are definitely not the same.
My questions: - is there any known problem due to import in r2012b of r2007b models? - were there any changes in the definition of these blocks and their parameters?
Thanks!
Matthieu
  1 件のコメント
Kaustubha Govind
Kaustubha Govind 2012 年 11 月 30 日
Matthieu: It might help if you explain how they're different. Is the different of the order of 1e-5 for instance, or significantly different?

回答 (2 件)

Andreas Goser
Andreas Goser 2012 年 11 月 30 日
I have worked on a couple of occasions with the similar symptoms. It is very diffcult to resolve without having the model, whoch is why I recommend contacting Technical Support. This is what root causes I have found in different cases:
  • Difference was caused by different computer architectures (32/64 bit) and there a good numerical reasons why this can happen
  • Difference was caused by different c compilers in cases where e.g Simulink Accelerator was used
  • Difference was caused by different processor manufacturers and their respective BLAS library
  • Difference was caused by a change of a default option of a MATLAB command that was called

Matthieu
Matthieu 2012 年 11 月 30 日
Thank you for your comment/message.
I just solve the problem (finally!), much easier than what you actually describe Andreas: the parameters of one output port has changed, don't know if it was because of the version change or an unfortunate "set_param" during a previous update... Instead of being reset to 0, the ouput value of an enabled subsystem is held. Hard to find when you have 250 such subsystems! One day lost for such a stupid thing, aarrrrgggg.
Sorry... and thank you for your answers!

この質問は閉じられています。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by