필터 지우기
필터 지우기

Is it possible to switch between two joints in simulink multibody?

조회 수: 1 (최근 30일)
I want my simulink model to choose the type of a joint depending on a variable.
I tried triggered subsystems, I tried enabled subsystems, so far nothing worked and I have no more ideas what else I could try.
The attached file is my failed version with the triggered subsystem approach. When you start it nothing moves. If you comment out (click it and Ctrl-Shift-X) one of the subsystems the solid swings depending on which you commented out. This "ignoring" of a block I want to achieve by the change of a variable.
Hopefully what I wish for is clear. If things are unclear I would gladly explain in more detail.
Thanks to you for reading my question. And a big thank you in advance to everyone responding.

채택된 답변

David Boelke
David Boelke 2019년 4월 9일
I found a workaround for myself. I used a joint, which had both degrees of freedom, with both of them being controlled by an input. Through a simple logical decider one of them is set to zero and the other is set to the control input.
This of course only works for joint, that are controlled by input, not passive joints, that are controlled by external forces.
Maybe this also helps others.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by