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

17 次查看(过去 30 天)
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

类别

Help CenterFile Exchange 中查找有关 Simscape Multibody 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by