Ideal position (translation/rotation) source in Matlab/SimScape?

9 vues (au cours des 30 derniers jours)
Daniel Jung
Daniel Jung le 17 Fév 2022
Commenté : Zheng le 27 Nov 2025 à 7:19
Hello,
I'm would like to apply a defined displacement over time onto a Simscape Model.
It seems there's only a "velocity" and "force" source element. Is there a best practice for modelling a position source?
I've tried to simply use my time-position and connect it to a derrivation block to get a velocity-demand to use in a velocity-source. With a high amount of single position-exitations this leads to a drift in position due to small inaccuracies.
Best regards,
Daniel
  1 commentaire
Zheng
Zheng le 27 Nov 2025 à 7:19
IF I understood u correctly
Perhaps you can simply use ideal force source to power mechanical blocks and use the "Translational Hard Stop" Block to lock the upper and lower limit of displacement. at least thats what I am doing to limit the input rod of Master Cylinder in a car

Connectez-vous pour commenter.

Réponses (1)

Vidip
Vidip le 17 Jan 2024
I understand that you are trying to differentiate your position signal to get a velocity signal and then feed that into a velocity source, but you are getting drifted position due to small inaccuracies.
While using the derivative block, the model needs to follow a specific set of guidelines which are mentioned in the below link and if not possible there are certain alternatives mentioned to reduce the number of inaccuracies which are observed in the results –
Also, try implementing a feedback control system that uses a PID controller to ensure the position tracks the desired trajectory by comparing the actual position with the desired position and adjusting the velocity input accordingly.
For further information, refer to the documentation links below:

Catégories

En savoir plus sur Troubleshooting dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by