Importing simscape xml file
조회 수: 4 (최근 30일)
이전 댓글 표시
Helle everyone,
For a university project I have to import a xml file to load the project. We use this command:
smimport('DeltaRobot360_Asly_v2021.xml')
Now I get the following error message:
Error using smimport_implementation
'"C:\Program Files\MATLAB\R2024b\bin\win64\mwdot" -Kdot -Tplain
C:\Users\denbo\AppData\Local\Temp\tpe9f78ce9_a532_4b2d_8e87_96b08e5857f1.dot -o
C:\Users\denbo\AppData\Local\Temp\tpe9f78ce9_a532_4b2d_8e87_96b08e5857f1.plain' is an invalid option
Error in smimport (line 173)
smimport_implementation(multibodyDescription, varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I have looked on the internet and asked AI some questions about it but I cannot really find an answer. Help is much appreciated.
Thanks in advance,
Arne
댓글 수: 0
답변 (1개)
Divyajyoti Nayak
2025년 6월 2일
편집: Divyajyoti Nayak
2025년 6월 2일
This seems like an issue withe xml file itself, but can't say for sure without the file. For the 'smimport' function to be able to import an xml file, the file must follow the 'Simscape Multibody XML Schema' as given in the documentation for the 'smimport' function.
'Simscape Multibody XML Schema': https://www.mathworks.com/products/simscape-multibody/download_smxmlschema.html
The 'Simscape Multibody Link' plug-in can be used to convert CAD models into xml files:
Use the plug in to convert CAD model into a xml file that can be used by the 'smimport' function.
Hope this helps
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Model Import에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!