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

 채택된 답변

Steve Miller
Steve Miller 2017년 5월 19일

0 개 추천

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에 대해 자세히 알아보기

질문:

2017년 5월 19일

댓글:

2017년 5월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by