Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Simulink creates errors from nowhere!
1 回表示 (過去 30 日間)
古いコメントを表示
It's really frustrating, I spent hours on this but I just don't see anything meaningful.
I use a fixed step solver (step size 1e-12) and export two signals from to different sources, both sampled at "0" (i.e., each time step). This is the model:

Both signals are numerically IDENTICAL!!! After the simulation, I execute
plot(simout_sim - simout_cad)
and get this figure. There is really NO DIFFERENCE between these signals!!

Now I send both signals through identical systems (in this case Butterworth) and suddenly Simulink creates a huge error! I execute:
plot(simout_sim_bb-simout_cad_bb)
and get this (zoomed to the beginning):

Clearly the problem is the "cadence" block (which does not perform any actions). If I just remove it, it works, if I just export simout_sim and simout_cad and read it in via "From Workspace" block it also works. However, I still make sure that both signals are identical!
This must never result in an overall error of 1e-3 ... from out of nothing!!
Any ideas?
2 件のコメント
Meghana Dinesh
2014 年 11 月 26 日
Have you checked the timing/clock values and made sure it's correct?
回答 (1 件)
Andreas Goser
2014 年 11 月 26 日
I like to share two experiences.
#1 is related the the statistical expereince that around 50% of all issues with 3rd part products are related to release compatibility. Make sure the Cadence block is really matching with the release requirements.
#2 as of a similar issue worked on a couple of weeks ago. Here the 3rd party vendor mentioned on one page of a 100 page document this only would work with a certain solver and a couple of specific settings. I may or may not be ths is also what happens for you.
1 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!