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

2 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

David Boelke
David Boelke il 9 Apr 2019
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.

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by