Error using smimport_implementation first generation

조회 수: 8 (최근 30일)
CyberRobotics
CyberRobotics 2022년 11월 12일
답변: Ritish Sehgal 2022년 11월 16일
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?

답변 (1개)

Ritish Sehgal
Ritish Sehgal 2022년 11월 16일
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!!

카테고리

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

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by