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

2 ビュー (過去 30 日間)
David Boelke
David Boelke 2019 年 3 月 6 日
回答済み: David Boelke 2019 年 4 月 9 日
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 Center および File ExchangeBodies についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by