How to using slider bar to control joint?

8 ビュー (過去 30 日間)
Yuttana Emyong
Yuttana Emyong 2021 年 3 月 3 日
回答済み: Steve Miller 2021 年 6 月 7 日
Input sine wave, Boby move properly but when change to slider bar to control but body is not any move.
  1 件のコメント
Yifeng Tang
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
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

カテゴリ

Help Center および File ExchangeAssembly についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by