How to change simscape body element properties for multiple accelerated simulation.

4 ビュー (過去 30 日間)
Barnaby Pine
Barnaby Pine 2022 年 2 月 19 日
回答済み: Steve Miller 2022 年 3 月 6 日
I am trying to run a simulation of an arm. The simscape model is largely defined from variables in the workspace currently.
I have code to sweep through variables at different values and run the simulation. However, as the length property of the cylindrical solid is one of the variables to be changed, I am unable to perform multiple accelerated or 'fast restart' simulations with this property being altered.
Any help is greatly appreciated.

回答 (1 件)

Steve Miller
Steve Miller 2022 年 3 月 6 日
You can set the length (and radius) of the Cylindrical Solid block to be a run-time parameter, which would allow you to vary this value when the model has Fast Restart enabled. The setting you need to change is shown below. If that drop-down menu is not visible, go to your Simulink preferences to enable it.


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




Community Treasure Hunt

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

Start Hunting!

Translated by