simmechanics joint initial condition tunable parameter

조회 수: 8 (최근 30일)
Guoping Zhao
Guoping Zhao 2018년 5월 7일
댓글: Barnaby Pine 2022년 2월 28일
Hi,
Is it possible to configure initial conditions of joint block (e.g. initial position, velocity) as tunable parameters? I'm running the simulink model in Rapid mode. I need to configure the joint initial states as tunable parameters so that I don't have to rebuild the whole model every time I change the initial conditions.
Thanks.

채택된 답변

Lucien Hollins
Lucien Hollins 2020년 11월 17일
Hi,
You will need to make the run-time parameters option visible if you have never used them before. The option to switch individual parameters from compile-time to run-time is colocated with each parameter that is run-time enabled.
Note that run-time parameters are not exactly the same as tunable parameters. Some features may vary slightly from one release to another.
  댓글 수: 1
Barnaby Pine
Barnaby Pine 2022년 2월 28일
Thank you!
This answer has really helped me in my endeavours!
Took far too long for me to find this out!
Kind regards,
Barnaby Pine

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

추가 답변 (1개)

Steve Miller
Steve Miller 2019년 4월 2일
Yes, you can. The initial conditions can be configured to be run-time parameters so that you can modify them between simulation runs without compiling.
--Steve
  댓글 수: 1
Guoping Zhao
Guoping Zhao 2019년 4월 2일
Hi Steve,
Could you be more specific? I'm using Matlab 2018b. And I cannot find the way to configure the initial conditions of joint blocks to be run-time parameters.
Thanks.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by