Using SimScape Multibody in Matlab-online

14 ビュー (過去 30 日間)
trudolf
trudolf 2020 年 7 月 30 日
コメント済み: trudolf 2020 年 7 月 30 日
Dear all;
I am trying to build the simple pendulum model in SimScape Multibody using the Matlab-online version. However, I can´t configure the parameters of the different blocks. So far I tried the "Brick Solid" block and the "Rigid Transform" block. When I double-click the blocks there are either no parameters o they are greyed out. In the documentation, It is mencioned that "Multibody" is available in Matlab-Online but "Block parameters must be changed using the Property Inspector". So I tried to use the Property Inspector but is simply opens the block parameter diagram as it does with the "double click". Anyone can help me with this? What am I doing wrong?
Thanks
Thomas

採用された回答

Michael Carone
Michael Carone 2020 年 7 月 30 日
編集済み: Michael Carone 2020 年 7 月 30 日
The limitation on Simscape Multibody regarding block parameters was incorrectly stated on the Simulink OnlineSpecifications and Limitations page. Right now Simscape Multibody block parameters can only be viewed and changed via the API commands get_param and set_param in Simulink Online. For example, select the Revolute Joint in the double pendulum example and enter the following code to find all the block parameters and then view the damping coefficient value:
get_param(gcb,"ObjectParameters")
get_param(gcb,"DampingCoefficient")
If you want to change the damping coefficient, set the value as follows (note that the value must be entered as a string):
set_param(gcb,"DampingCoefficient","0.5")
We are working on addressing this limitation for a future version of Simulink Online.
  1 件のコメント
trudolf
trudolf 2020 年 7 月 30 日
Thank you very much! I will try it this way.
Thomas

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Simscape Multibody についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by