Importing simscape xml file

3 visualizaciones (últimos 30 días)
Arne Niels
Arne Niels el 31 de Mayo de 2025
Editada: Divyajyoti Nayak el 2 de Jun. de 2025
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

Respuestas (1)

Divyajyoti Nayak
Divyajyoti Nayak el 2 de Jun. de 2025
Editada: Divyajyoti Nayak el 2 de Jun. de 2025
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

Categorías

Más información sobre Model Import en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by