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

4 次查看(过去 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 中查找有关 Bodies 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by