Problems with moving Simscape from 2014b to 2015b
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a Simscape model in Simulink that takes block inputs as workspace variables and I call it in a script. At my school the campus computers have Matlab 2014b, but our individual licenses are for 2015b so I have 2015b at home and 2014b at school. When I put the model from my home computer on google drive and then downloaded it to the campus computer all the variables in the blocks were changed to default values. For example, the tire blocks had their tire force values changed to the defaults from my magic tire coefficient variables.
Has anyone else experienced this problem? Is there a solution, I just want to be able to save my work?
댓글 수: 0
답변 (1개)
Martin
2023년 10월 4일
MathWorks does not guarantee behavior when files are saved in a newer release and then opened on an older release. In this case, the parameters names in the code of the block have likely changed, so it does not see a match, and sets the parameters to defaults. MathWorks does try to make things work the other direction (saved in an older release and opened in a newer one) via forwarding.
A few things that you could do include matching the two versions if possible or using a .MAT file to hold your parameter values. With a .MAT file, you could populate the parameters in the workspace. When reopening in the older release, you would still need to go to the block to put in the correct workspace names for the parameters, but you would not lose the actual numerical data that you have.
댓글 수: 0
참고 항목
카테고리
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!