Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
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.

Réponse acceptée

David Boelke
David Boelke le 9 Avr 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.

Plus de réponses (0)

Catégories

En savoir plus sur General Applications dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by