How can I execute parametric simulations with Simscape components in "Rapid Accelerator" mode?

조회 수: 5 (최근 30일)
I have a Simulink model that consists of a mass, spring, and damper. I'm interested in running parametric simulations for different masses using the 'Rapid Accelerator' mode. Is it possible to perform such simulations? If yes, could you please provide guidance on how to proceed?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2023년 7월 14일
To perform parametric simulations with Simscape components in "Rapid Accelerator" mode, you can utilize the "Run-time" parameter configuration. Follow the steps below to change the parameter configuration:
1. In the MATLAB R2021b window, navigate to HOME > Preferences > Simscape. Then, click on the "Show run-time parameters" option.
2. Open your Simulink model.
3. Double-click on the "Mass" block and set the "mass" to "Run-time"
4. Execute your code, updating each simulation's "mass" value.
For more detailed information on Simscape "Run-time" parameters, please refer to the documentation page linked below:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Run-Time Parameters에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by