MATLAB Answers

how to plot angles of the oscillating guide and the crank in the same graph

조회 수: 2(최근 30일)
amatoallah ouchen
amatoallah ouchen 2021년 5월 5일
답변: Yifeng Tang 2021년 5월 6일
Good day
I have the following diagram in simscape multibody
I would like to know how to plotto plot angles of the oscillating guide and the crank in the same graph?
thank you in advance!

답변(1개)

Yifeng Tang
Yifeng Tang 2021년 5월 6일
Two possible ways I know of:
  1. Use the simlog. I saw your model is already logging the Simscape data, so you just need to go to "Model Settings"-"Simscape"-"Data Logging" and check "Open viewer after simulation". It will open the Simscape Result Explorer after simulations and you will have access to angle information for all joints. Use Ctrl+select to plot signals of the same unit on the same graph. You can also access the data in workspace. Check out the Documentation here: https://www.mathworks.com/help/physmod/simscape/ug/log-and-plot-simulation-data.html
  2. Turn on sensoring in the joints. More info here: https://www.mathworks.com/help/physmod/sm/ref/revolutejoint.html#bttq7al-4 You can then send the measurement to workspace in Simulink. You can also access constraint force info using this approach.

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by