Combining Simscape-Simulink Matlab versions 2018 and 2021

조회 수: 2 (최근 30일)
Fironov Anatoly
Fironov Anatoly 2022년 1월 6일
댓글: J Chen 2022년 2월 2일
The model in Simscape-Simulink works in Matlab 2018, in matlab 2021a it gives the message:
Failed to find 'sm_interface_elements_lib/Foundation Library/Mechanical/Translation Elements/Translational Hard
Stop' in library 'sm_interface_elements_lib' referenced by 'model_30_100_M2021/Model/Medium trolley/Side Limiters/Translational Hard Stop1'
How to fix the error?
Replacing library blocks does not help.
  댓글 수: 2
Fironov Anatoly
Fironov Anatoly 2022년 1월 20일
Dear J Chem! Thank you for your feedback and advice. Unfortunately, we tried to carry out such a replacement, but we were not able to do it fully with a large number of similar blocks in the model (and not only hard stop block). Therefore, we asked for advice, in the hope that the developers of Simulink - Simscape will offer automatic replacement of blocks, or a special application for such a transformation. This problem is also relevant for earlier versions of Matlab.
J Chen
J Chen 2022년 2월 2일
Maybe you can save the model in an mdl file instead of a slx file. The mdl is a text file. You can develop a code to search and replace the offending blocks.

댓글을 달려면 로그인하십시오.

채택된 답변

J Chen
J Chen 2022년 1월 19일
편집: J Chen 2022년 1월 19일
Replace the hard stop block with the hard stop block in the 2021a Simulink Library Browser.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simscape Multibody에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by