Shared simulation shows different results
조회 수: 6 (최근 30일)
이전 댓글 표시
Hello everyone,
I need to work on an efficiency simulation in MATLAB Simulink which is shared between me and my colleagues via git.
My problem: The simulation shows different results (deviation factor x10) if run on my computer than on my colleagues’ and the simulation time varies, too.
Additional Information:
- I run the exact same version of MATLAB, Simulink and all the Toolboxes my colleagues have.
- We have narrowed the problem down to one variable that does not change at all (even though it should), and the subsystems related to that variable. But the model and the input parameters are (as far as we could see) the exact same as my colleagues’.
- We also shared the simulation via folder share (copy paste) to see if there was a problem with git, but the results still differed in the same way and only on my computer.
- We checked if the decimal separator is set differently on our computers, but it is the same. (Tested in Excel)
댓글 수: 0
답변 (1개)
Joel Van Sickel
2020년 11월 2일
Hello Alexandra,
the easiest explanation for this would be if you are using library blocks and somehow one of you have different libraries, however, I don't think that is your issue in this case. Given your debugging, it sounds like there is a variable that should be changing. When you say variable, do you mean Simulink signal value, or are you writing to the matlab workspace from your simulink model? Is this variable a mask parameter for those subsystems or something in the model workspace? Also, are you using model references? It is possible that something isn't getting updated. You can delete the slprj folder and try rebuilding the model as something easy to check. You could also try deleting all the .slxc files just in case. Can your provide examples of the particalar variable that isn't changing?
Regards,
Joel
참고 항목
카테고리
Help Center 및 File Exchange에서 Simscape Driveline에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!