필터 지우기
필터 지우기

Scope data either fails to print or is inconsistent with results explorer.

조회 수: 1 (최근 30일)
Michael Boddie
Michael Boddie 2023년 12월 15일
답변: Ishu 2023년 12월 27일
Hello Community,
First time poster here!
In the attached, I modify a Matlab example problem by adding a few scopes. Two things I hope to get some help with:
1) Scope data is inconistent with the results explorer in one case.
2) Scopes flatline. I searched the community forum and suspect the answer might be in To Workspace, but links to the examples don't work on my 2020b install.
Thank you!
  댓글 수: 1
Michael Boddie
Michael Boddie 2023년 12월 15일
Update: One of the reasons I chose this problem to investigate is that I wanted to better understand the process path. It was unintuitive to me that a gear box on the B side could be driven through the lever with a pulsing force in the A Side.
What I just discovered is a fix to the inconsistent explorer results. By ching the Wheel and axle B to work in the negative direction, the B scope matches the results explorer.
I'm looking forward to your thoughs on this topic and still looking for help on my flatlines though.

댓글을 달려면 로그인하십시오.

답변 (1개)

Ishu
Ishu 2023년 12월 27일
Hi Michael,
I understand that you are trying to analyse the results by comparing the "Scope Data" and the "Simscape Result Explorer".
For the fisrt case where your scope data is inconsistent with Result Explorer. You may need to know that the direction of torque is position from port R to port C. The inconsistency in the results is only in the direction of torque, the magnitude is same in both the cases. So in "Wheel and Axle B" the direction of the torque is positive i.e. from R to C, but in the "Scope" the direction of the torque is from C to R. You have to connect the "Torque Sensor" with the R port of "Rotational Sensor" to make torque positive.
And in the second case where you are gettting flatlines. In this case you have directly connected the "Torque Sensor" with the "Gear Box A". You need to firstly add a "Rotational Spring" between "Gear Box A" and "Wheel and Axle A", then you can connect the port R with the "Torque Sonsor" to get the correct results.
For more information on ports and direction of Torque you can refer below MathWorks documentations:
Hope it helps.

카테고리

Help CenterFile Exchange에서 Gears에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by