Thread Subject: Importing xml file into simmechanics

Subject: Importing xml file into simmechanics

From: tegan pringle

Date: 1 Nov, 2009 19:30:06

Message: 1 of 4

Hiya,

Im have been using the simmechanics link software to create an xml of my solidworks model which was sucessful after about a week of trying.

However now im having problems importing the xml file into simmechanics

i have the 2008a version of matlab and have been attempting to use import_physmod command to import the xml file.

When i use this command i get the following error message that i have no idea how to fix:

Warning: Undefined function or variable 'mech_import'.
> In C:\Program Files\MATLAB\R2008a\toolbox\physmod\pmimport\pmimport\pmiu_dlg.p>OkBtn_Callback at 175
  In gui_mainfcn at 96
  In C:\Program Files\MATLAB\R2008a\toolbox\physmod\pmimport\pmimport\pmiu_dlg.p>pmiu_dlg at 44


Can anybody shed some light on the situation , i would be so grateful as its driving me nuts.

Thank you.

Tegan

Subject: Importing xml file into simmechanics

From: Arnaud Miege

Date: 2 Nov, 2009 09:22:59

Message: 2 of 4


"tegan pringle" <tegan83@hotmail.com> wrote in message
news:hcknjt$7h2$1@fred.mathworks.com...
> Hiya,
>
> Im have been using the simmechanics link software to create an xml of my
> solidworks model which was sucessful after about a week of trying.
>
> However now im having problems importing the xml file into simmechanics
>
> i have the 2008a version of matlab and have been attempting to use
> import_physmod command to import the xml file.
>
> When i use this command i get the following error message that i have no
> idea how to fix:
>
> Warning: Undefined function or variable 'mech_import'.
>> In C:\Program
>> Files\MATLAB\R2008a\toolbox\physmod\pmimport\pmimport\pmiu_dlg.p>OkBtn_Callback
>> at 175
> In gui_mainfcn at 96
> In C:\Program
> Files\MATLAB\R2008a\toolbox\physmod\pmimport\pmimport\pmiu_dlg.p>pmiu_dlg
> at 44
>
>
> Can anybody shed some light on the situation , i would be so grateful as
> its driving me nuts.
>
> Thank you.
>
> Tegan
>

It sounds like you have a mismatch between your MATLAB version and
SimMechanics Link version. Are you sure you downloaded and installed the
R2008a version? What do you get when you type ver at the MATLAB command
line? I assume you typed something like import_physmod('filename.xml'). What
do you get when you type "which -all import_physmod" and "which -all
mech_import" at the MATLAB command line?

Arnaud

Subject: Importing xml file into simmechanics

From: tegan pringle

Date: 2 Nov, 2009 17:14:02

Message: 3 of 4


> >
>
> It sounds like you have a mismatch between your MATLAB version and
> SimMechanics Link version. Are you sure you downloaded and installed the
> R2008a version? What do you get when you type ver at the MATLAB command
> line? I assume you typed something like import_physmod('filename.xml'). What
> do you get when you type "which -all import_physmod" and "which -all
> mech_import" at the MATLAB command line?
>
> Arnaud
>
>
*******************************************************

Hiya,

i think you might be right about the mismatch , this is some of the lines i got when i typed 'ver' at the command line:

-------------------------------------------------------------------------------------
MATLAB Version 7.6.0.324 (R2008a)
MATLAB License Number: 161051
Operating System: Microsoft Windows Vista Version 6.0 (Build 6002: Service Pack 2)
Java VM Version: Java 1.6.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
-------------------------------------------------------------------------------------
MATLAB Version 7.6 (R2008a)
Simulink Version 7.1 (R2008a)
SimMechanics Version 2.7.1 (R2008a)
SimMechanics Link Version 3.0 (R2008b+)


also this is what i got when i typed in the command you gave above:


>> which -all import_physmod
C:\Program Files\MATLAB\R2008a\toolbox\physmod\pmimport\pmimport\import_physmod.m
>> which -all mech_import
'mech_import' not found.


I went back to the page where i downloaded simmechanics link from but there was no option to download it for matlab 2008a - does this mean that its not compatible with the 2008a version? If there is a compatible verison of simmechanics link would you be able to point me in the right direction so that i can download it please.

Many thanks for your help.

Tegan

Subject: Importing xml file into simmechanics

From: Arnaud Miege

Date: 3 Nov, 2009 09:14:42

Message: 4 of 4


"tegan pringle" <tegan83@hotmail.com> wrote in message
news:hcn40q$m58$1@fred.mathworks.com...
>
>> >
>>
>> It sounds like you have a mismatch between your MATLAB version and
>> SimMechanics Link version. Are you sure you downloaded and installed the
>> R2008a version? What do you get when you type ver at the MATLAB command
>> line? I assume you typed something like import_physmod('filename.xml').
>> What
>> do you get when you type "which -all import_physmod" and "which -all
>> mech_import" at the MATLAB command line?
>>
>> Arnaud
>>
>>
> *******************************************************
>
> Hiya,
>
> i think you might be right about the mismatch , this is some of the lines
> i got when i typed 'ver' at the command line:
>
> -------------------------------------------------------------------------------------
> MATLAB Version 7.6.0.324 (R2008a)
> MATLAB License Number: 161051
> Operating System: Microsoft Windows Vista Version 6.0 (Build 6002: Service
> Pack 2)
> Java VM Version: Java 1.6.0 with Sun Microsystems Inc. Java HotSpot(TM)
> Client VM mixed mode
> -------------------------------------------------------------------------------------
> MATLAB Version 7.6
> (R2008a)
> Simulink Version 7.1
> (R2008a)
> SimMechanics Version 2.7.1
> (R2008a)
> SimMechanics Link Version 3.0
> (R2008b+)
>
>
> also this is what i got when i typed in the command you gave above:
>
>
>>> which -all import_physmod
> C:\Program
> Files\MATLAB\R2008a\toolbox\physmod\pmimport\pmimport\import_physmod.m
>>> which -all mech_import
> 'mech_import' not found.
>
>
> I went back to the page where i downloaded simmechanics link from but
> there was no option to download it for matlab 2008a - does this mean that
> its not compatible with the 2008a version? If there is a compatible
> verison of simmechanics link would you be able to point me in the right
> direction so that i can download it please.
>
> Many thanks for your help.
>
> Tegan
>

SimMechanics Link was introduced in R2008b, so the version you have won't
work in R2008a. You can either upgrade to R2008b (or later) or contact
technical support as the old SolidWorks to SimMechanics (prior to R2008b) is
not available for download anymore:
http://www.mathworks.com/support/contact_us/index.html

Arnaud

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
physmod lauren smith 1 Nov, 2009 14:34:06
simmechanics lauren smith 1 Nov, 2009 14:34:06
solidworks lauren smith 1 Nov, 2009 14:34:06
xml lauren smith 1 Nov, 2009 14:34:06
rssFeed for this Thread

Contact us at files@mathworks.com