Importing simscape xml file

조회 수: 4 (최근 30일)
Arne Niels
Arne Niels 2025년 5월 31일
편집: Divyajyoti Nayak 2025년 6월 2일
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

답변 (1개)

Divyajyoti Nayak
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.
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

카테고리

Help CenterFile Exchange에서 Model Import에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by