I am trying to import file from Solidworks to Simulink. It is showing me following errors:

16 ビュー (過去 30 日間)
Resha Shah
Resha Shah 2019 年 4 月 19 日
コメント済み: Steve Miller 2024 年 4 月 11 日 16:56
I am trying to import file from Solidworks to Simulink. It is showing me following errors:
Error using PMImport.ModelReader
"XML Read error" while attempting to read file "Ballvalve.xml".
Error in PMImport.ModelUpdater
Error in PMImport.pmiu_import
Error in mech_import (line 102)
PMImport.pmiu_import(varargin{:});
Warning: A file named 'Ballvalve_DataFile' already exists in the current folder. The data
file was named 'Ballvalve_DataFile2' instead.
Warning: The set of constraints between 'Blocker_Ring_1_1_RIGID' and 'Handgrip_1_1_RIGID'
could not be mapped to a joint. A rigid connection has been added between port 'F' of
'Blocker_Ring_1_1_RIGID' and port 'F' of 'Handgrip_1_1_RIGID' for these constraints.
> In smimport_implementation
In smimport (line 165)
Error using smimport_implementation
Error evaluating 'PreCopyFcn' callback of Cylindrical
Joint block (mask) 'Ballvalve/Cylindrical'.
Callback string is 'simmechanics.sli.internal.rtm_callback('PreCopyFcn',gcbh)'
Error in smimport (line 165)
smimport_implementation(multibodyDescriptionFile, varargin{:});
Caused by:
Error using PmSli.RunTimeModule/getLicenseOrFail
Cannot add block Cylindrical to the model because a license for Simscape Multibody is
not available.

回答 (1 件)

Steve Miller
Steve Miller 2019 年 4 月 28 日
It looks like you do not have a Simscape Multibody license, which is necessary for assembling the block diagram.
Caused by:
Error using PmSli.RunTimeModule/getLicenseOrFail
Cannot add block Cylindrical to the model because a license for Simscape Multibody is
not available.
You will need to sort that out first.
--Steve
  2 件のコメント
Natalia Rishma A
Natalia Rishma A 2024 年 4 月 11 日 16:31
Sir, I have simscape multibody license but I face the same issue. How should I resolve it?
Steve Miller
Steve Miller 2024 年 4 月 11 日 16:56
Can you upload the files so we can test the import?
--Steve

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSimscape Multibody についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by