Ideal position (translation/rotation) source in Matlab/SimScape?
13 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Vidip
2024-1-17
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:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simscape Multibody 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!