How to using slider bar to control joint?
조회 수: 4 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/537416/image.jpeg)
Input sine wave, Boby move properly but when change to slider bar to control but body is not any move.
댓글 수: 1
Yifeng Tang
2021년 4월 29일
I think it should work ... could you share a snaphost of using a slider bar in place of the sine wave?
The slider bar should be linked to a source, most likely a constant block. And you need to slow down the simulation, by pacing it, so you have time to move the slider.
Let me know how it works.
답변 (1개)
Steve Miller
2021년 6월 7일
Hi Yuttana,
You can use a slider to control a joint. Attached to this answer is sm_four_bar_slider.slx where the crank angle is set by a slider dashboard block. The simulation pacing has been enabled and set to keep the simulation to roughly real time so that you can tune the slider interactively.
--Steve
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/645075/image.png)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Assembly에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!