SimMechanics™ and PTC Creo CAD imports
Show older comments
Hi, I am trying to follow the tutorial as described in "http://www.mathworks.com/help/physmod/sm/ug/import-robot-arm-model.html". I managed to install everything without any problem. But after I exported the model, I am able to see the block but Mechanics Explorer is unresponsive and blank all the time. I made sure that all the stl files were there as well. The command window also displays about 3 pages of error. The first few lines looks like this
"Warning: Using a default value of 0.2 for maximum step size. The simulation step size will be equal to or less than this value. You can disable this diagnostic by setting 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics page of the configuration parameters dialog Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Error making context current: 2001 at com.sun.opengl.impl.windows.WindowsGLContext.makeCurrentImpl(WindowsGLContext.java:169) at com.sun.opengl.impl.windows.WindowsOnscreenGLContext.makeCurrentImpl(WindowsOnscreenGLContext.java:66) at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134)...........
and so on. I don't know if Java has anything to do with it but I have also made sure that my Java is up to date.
7 Comments
Xing gao
on 20 May 2014
Hi Kiran,
May I ask some questions about your post?
1. Are you trying the workflow about exporting PTC Creo model to SimMechanics?
2. If so, are you using the PTC models from \matlab\toolbox\physmod\smlink\smlinkdemos\proe ?
3. The desired workflow is:
b. Open model using your CAD software (In your case will be Creo).
d. Use smimport to import the XML file. Like smimport('robot.xml')
4. If you did follow this workflow but still occur problem, would you please attach some files? For example, the exported xml file?
5. Which version of MATLAB you are using?
6. If you open the xml file, you can see the SimMechanics Link version. Which version you are using?
Thanks, Xing
hal9k
on 20 May 2014
Xing gao
on 20 May 2014
Hi Kiran,
Thanks for sharing the files with me.
I just tried your files in R2013a. But I cannot reproduce the java exceptions.
Do you mind if you try one more thing? in MATLAB command window, type in sm_four_bar, you will see a model. Then do Ctrl+D to see if this also produces the same java exception. If so, we can see there are some problems with your SimMechanics product.
Thanks,
-Xing
hal9k
on 20 May 2014
Xing gao
on 20 May 2014
Hi Kiran,
I think there are two more things you could try.
1. I found something seems exactly same as your java exception. http://forum.salemthegame.com/viewtopic.php?t=2514&p=27141
I do not have ATI graphics card so I cannot verify it. But I think this is worth a try.
2. If this does not solve your problem, maybe you can try to update your graphics card driver. (and if this solves problem, you might undo 1.)
Thanks,
Xing
Xing gao
on 21 May 2014
Hi Kiran,
It's good to know you figure it out. Java stuff is always tricky..
Thanks for letting me know the solution which can be useful for me in the future.
Regards,
-Xing
Answers (0)
Categories
Find more on Model Import in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!