Oneshape Model Simulation working but not Simscape?

Hello, I'm learning MatLab/Simulink/Simscape and I've been impressed by the capacity of Simulink to integrate Onshape models. Unfortunately moving to a personal example/Oneshape model that perfectly works/animates into Onshape, when running the model in simulink, simulink gives an error that I don't know how to solve. Not that I don't know what the message means or where to look but the error does not make sense and therefore I do not know what to do to solve it.
Error message attached. * Model not assembled: position violation * Resolve this issue in order to simulate the model
Sources: Oneshape model: https://cad.onshape.com/documents/597f85b6cc02d6dc4e53c6e1/w/66556db52779a3bc060b1774/e/4864d428da8397634c165b1d Simulink model from my google drive: https://drive.google.com/file/d/0Bwqs0N2V79tBNHN5cWRWaUVqODg/view?usp=sharing
If you don't mind looking and let me know what you think/where I'm making a mistake and how to solve it, please let me know. Deeply appreciated.
Dimitri

 采纳的回答

Hi Dmitri - I took a quick look.
The diagnostic points to Revolute 2 being a problem. I replaced it with a Cylindrical Joint and it simulates and everything moves.
I then looked at your Onshape model. The Mate Connectors for Revolute 2 are not coincident - they are separated along an global y axis (z-axis for the mate connectors).
There are multiple ways to solve this problem, but you as the designer probably know which one is the best: 1. Move your Mate Connectors so that they are coincident (or create a new Mate Connector) 2. Change Revolute 2 to a Cylindrical Mate
Looks like a nice model! --Steve

2 个评论

Thanks a lot Steve. First for such a quick answer and second for helping me solving this. This is a typical model for sensing sea level relative to the hull of a dingy to make it fly steadily. The response is an automatic adjustment of the flap that creates less or more lift. Learning to do this in simulink is a real short cut for tuning mechanical control system like this. I'm really impressed by the compatibility between Onshape and Simulink. Models can be quite complex to create/build and time consuming in simulink when inexperienced like me but now this opens new doors! This is awesome. As a beginner, I'm quite excited to do more and more tutorials and mix with my simple cad model.
Thank you so much. Dimitri
Was my pleasure to help! Thanks for the background information. Very cool mechanical control system. It really helped that you could share the URL - made it easy for me to check both the source and the converted model.
--Steve

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Real-Time Model Preparation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by