Error using smimport_implementation first generation

11 visualizaciones (últimos 30 días)
CyberRobotics
CyberRobotics el 12 de Nov. de 2022
Respondida: Ritish Sehgal el 16 de Nov. de 2022
Hi
I am trying to import the xml file but get following error
Error using smimport_implementation
The XML file describes a Simscape Multibody First Generation model. This file is meant for use
with the first-generation mech_import function.To import a model based on the latest
Simscape Multibody technology, obtain an XML import file consistent with the published Simscape Multibody
XML schema. You can do this using the Simscape Multibody Link plug-in.
Then, import that file using the smimport function.
Error in smimport (line 173)
smimport_implementation(multibodyDescription, varargin{:});
This error occour when I am running following command
smimport('knife_fish_01.xml')
I have only the knife_fish_01.xml fil.
Any suggestion is it possible to open this file SolidWorks then convert so it possible to use simport?

Respuestas (1)

Ritish Sehgal
Ritish Sehgal el 16 de Nov. de 2022
I understand that you are facing an error while importing an XML file using the ‘smimport’ function.
In order to use the ‘smimport’ function, the XML file should follow the Simscape Multibody XML schema.
You can check out the example in the link below that shows the correct schema to be followed:
You can also use ‘Simscape Multibody Link Plugin’ to generate the compliant XML files which can be converted into Simscape Multibody models using ‘smimport’ function.
You can refer to the link below to install the ‘Simscape Multibody Link Plugin’:
Hope it helps!!

Categorías

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

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by