Importing simscape xml file

5 次查看(过去 30 天)
Arne Niels
Arne Niels 2025-5-31
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