Problem with Section 7.1 Task 5 of Simscape onramp

Although I correctly configured the model blocks and parameters accordingly to the directions, the training evaluation said my output did not match the answer. It prevents me from proceeding to the next task.
Here I attach two snapshots of the evaluation plot of Section 7.1 Task 5 where the problem occured.
The first picture shows comparison of the signals spanning to the end time (10sec). It looks to me exact agreement between the requirement and my signal, but it indicates slight discrepancies in the beginning of simulation (from 0 sec to around 1.0 sec) shown by the red dots. Due to these errors, the evaluator says my signal is incorrect.
The second picture zooms into the details of the red dots. It looks to me my signal has a slight delay to the answer.
I confirmed that my setup is consistent with the directions and the results unchanged even after several retries from the beginning of Section 7.1.
I am wondering if there is another parameter to be adjusted, which is not explicitly directed.
Can I have your help for solving this problem?

9 件のコメント

Jan Kirner
Jan Kirner 2021 年 5 月 16 日
I have the same problem. Best regards.
Lianna Cubias
Lianna Cubias 2021 年 8 月 7 日
i seem to be experiencing this issue and have consulted many but have failed to find anyone with a solution or explanation as to why this is happening. Your answer for the thread about the problem with Simscape Onramp task 9 helped so can you offer some insight here, please?
Lianna Cubias
Lianna Cubias 2021 年 8 月 7 日
Figured it out! Finally!
Do tasks 1-5 as instructed. All that is correct. Before running the model in Task 5 try this:
Check the settings on the "Rotational electromechanical converter" block that your "ideal rotational motion sensor" is connected to. Go to the "Variables" tab, check the override box for "Angular velocity" and set priority to "high". Everything else, leave it the way it is. Then run the model. This worked for me because I was having this exact problem.
Philipe Doughty
Philipe Doughty 2021 年 11 月 5 日
It worked for me by setting the priority of angular velocity to low.
玄人 市川
玄人 市川 2021 年 11 月 7 日
Thank you Lianna and sorry for my late response although I originally started this thread. I have just tried your practice and it did work for me.
Amanullah S
Amanullah S 2021 年 12 月 4 日
Thank you I too strucked and rectified after giving priority as low
Eric Guil Vidal
Eric Guil Vidal 2021 年 12 月 19 日
For me worked setting "low"
Kevin
Kevin 2025 年 10 月 4 日
DELETE CONNECTIONS OF IDEAL ROTATIONAL SENSOR AND AGAIN CONNECT THEM
Wisdom
Wisdom 2026 年 2 月 28 日
None has worked for me!!!!!!

サインインしてコメントする。

 採用された回答

Joel Van Sickel
Joel Van Sickel 2021 年 8 月 18 日

6 投票

I am pasting Lianna's comment here as it is the solution.
Lianna Cubias on 7 Aug 2021 at 9:16
Figured it out! Finally!
Do tasks 1-5 as instructed. All that is correct. Before running the model in Task 5 try this:
Check the settings on the "Rotational electromechanical converter" block that your "ideal rotational motion sensor" is connected to. Go to the "Variables" tab, check the override box for "Angular velocity" and set priority to "high". Everything else, leave it the way it is. Then run the model. This worked for me because I was having this exact problem.

19 件のコメント

Muhammad Amirul Alif Zakria
Muhammad Amirul Alif Zakria 2021 年 9 月 24 日
Thank you for the tips, it worked for me
Kiril Nikolov
Kiril Nikolov 2021 年 9 月 25 日
For me it did not work when I set the priority to high, it did work when I set it to low, however...
Melissa Niesen
Melissa Niesen 2021 年 10 月 5 日
Mine also only worked when I chose "low" rather than "high" for the angular velocity override.
Osmar Tormena Júnior
Osmar Tormena Júnior 2021 年 10 月 9 日
I can also confirm it only works with low priority.
francisco sabugo
francisco sabugo 2021 年 10 月 12 日
Thank you!! it worked for me by setting the priority to low of w in the "Rotational electromechanical converter"
Khaled  Alnajjar
Khaled Alnajjar 2021 年 10 月 14 日
For me it did not work when I set the priority to high, it did work when I set it to low, however...
Daniel Hilal
Daniel Hilal 2021 年 10 月 14 日
It also worked for me with the low priority (only for the angular velocity)
Marc
Marc 2021 年 10 月 31 日
Worked for me with "low" priority. Frustrating as hell though! Dang it Mathworks! Put this in the instructions.
Thanks to all of you who found this out!
Paolo Galimi
Paolo Galimi 2021 年 10 月 31 日
Here, too, it worked with with Angular velocity set to low (tried prio. high and constant changed to 500.3745 w/out success). My plot had no error red dots whatsover. The Signal requirement (orange) and My Signal (blue) were just the same even with a zoom in. I am running R2021b on linux64. Thanks for figuring this out.
DHUSHYANTH S
DHUSHYANTH S 2021 年 10 月 31 日
It worked for me by setting the value of angular velocity to low. thank you @Paolo Galimi
Philipe Doughty
Philipe Doughty 2021 年 11 月 5 日
It worked for me by setting the priority of angular velocity to low.
玄人 市川
玄人 市川 2021 年 11 月 7 日
Thank you Joel for your advise. Sorry for my late response although I originally started this thread. Changing priority to high for Angular velocity did work for me. Just wondering why it still does not work for some people and the opposite setup works for some of them...
Ali AJDER
Ali AJDER 2021 年 11 月 8 日
In my case both setting the priority of angular velocity to high or low did not work. I also tested the other combinations for torque and angular velocity!
Ali AJDER
Ali AJDER 2021 年 11 月 10 日
I tried again and now it worked by setting the priority to low of the "Rotational electromechanical converter".
Paphon Rattanadumrongpinyo
Paphon Rattanadumrongpinyo 2021 年 11 月 10 日
I can't whether it changes to low or high
Rosendo Valdes
Rosendo Valdes 2022 年 2 月 1 日
Thanks, when I change the constanto to 500.3745, and did the instruction
Chris Turner
Chris Turner 2022 年 6 月 6 日
I had to do both, as well. Thank you all for posting your solutions!
meron eyasu
meron eyasu 2022 年 7 月 5 日
Thanks Joel worked for me "High"
Daniel Mejia
Daniel Mejia 2022 年 10 月 2 日
No me funciona nada, ni en alto ni bajo, ni cambiando el convertidor rotacional. nada

サインインしてコメントする。

その他の回答 (3 件)

Orkhan Alikhanov
Orkhan Alikhanov 2021 年 9 月 26 日

18 投票

It only worked for me after I set priority to "low" in the "Variables" tab of "Rotational electromechanical converter" block.

11 件のコメント

Douglas Johnson
Douglas Johnson 2021 年 9 月 27 日
I had to set the priority to "low" and change the constant to 500.3745
Jichao Fang
Jichao Fang 2021 年 10 月 13 日
Douglas's solution worked for me.
Puskar Neupane
Puskar Neupane 2021 年 10 月 26 日
Orkhan solution works for me
Karl Frode Ring
Karl Frode Ring 2021 年 10 月 27 日
Me also
Mohit
Mohit 2021 年 10 月 27 日
thanks for the solution, worked for me .
Eric Liu
Eric Liu 2021 年 11 月 1 日
Thank you for the tips, it works for me
Philipe Doughty
Philipe Doughty 2021 年 11 月 5 日
It worked for me by setting the priority of angular velocity to low.
玄人 市川
玄人 市川 2021 年 11 月 7 日
Thank you Orkhan. Hmm.. as the other people advised to me, changing the priority to "HIGH" only worked for me.
俊 井
俊 井 2021 年 12 月 11 日
Me too.
Shafie Mohamed Shafie Hassan
Shafie Mohamed Shafie Hassan 2023 年 1 月 27 日
yes , set the Angular Velocity in the 'variables' section of 'rotational electro mechanical converter'MAT
that should work
[R2021b]
Kartik
Kartik 2024 年 9 月 24 日
編集済み: Kartik 2024 年 9 月 24 日
Thanks, After setting priority of Angular velocity to "Low", it did worked.

サインインしてコメントする。

Alisha Schor
Alisha Schor 2022 年 2 月 11 日
編集済み: Alisha Schor 2022 年 2 月 11 日

1 投票

If possible, please update to R2021b, Update 1 or newer. This should resolve the issue without having to change any block settings.
Justin
Justin 2024 年 5 月 11 日
編集済み: Justin 2024 年 5 月 11 日

0 投票

An error will occur that resets the values of the PID block.
Change the PID back to PI.
Change the Proportional (P) value from 1 back to 1e-6.
Change the Integral (I) value from 1 back to 5e-3.
Change the Sample Time (-1 for inherent) from -1 back to 0.05.
This glitch is frustrating. I question the Previous solutions.

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

製品

リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by