Problem sending signals from Simulink to workspace

1 回表示 (過去 30 日間)
Flavio Clarizia
Flavio Clarizia 2020 年 10 月 23 日
コメント済み: Flavio Clarizia 2020 年 10 月 26 日
I am trying to build a controller for a unycicle, but when I try to send the configuration to the workspace for doing the polts, I have that the values of x,y and theta are all zeros. Moreover, the values of the input velocities are just two, and I don't get what is happening.
I attach my model.
Can somebody please help me? I have been on this problem for long time.
Thanks in advance

採用された回答

Mathieu NOE
Mathieu NOE 2020 年 10 月 23 日
Hi Flavio
just a fews minor bugs
1/ your x and y are not initilaised , by default your integrator blocks IC are set by default to zero
so x and y IC = 0 , so next value for v = 0 so idem for x_dot and y_dot , and so on, everything remains at zero the entire simulation
to fix that I change the IC values (see the initialization file and the simulink blocks changed are in green color)
2/ minor bug also on the indexes for v and omega data - this is why you had not the entire data vector.
I send you back the files and hope you can continue your work
Ciao
  3 件のコメント
Mathieu NOE
Mathieu NOE 2020 年 10 月 26 日
here you are
sorry, I didn't pay attention to that !
hope it works now
All the best
ciao
Flavio Clarizia
Flavio Clarizia 2020 年 10 月 26 日
Yes it works. Thank you very much for your help!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by