Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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 Commento
Michael Boddie
Michael Boddie il 15 Dic 2023
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.

Accedi per commentare.

Risposte (1)

Ishu
Ishu il 27 Dic 2023
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.

Categorie

Scopri di più su Gears in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by