How can I execute parametric simulations with Simscape components in "Rapid Accelerator" mode?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 14 Jul 2023
Answered: MathWorks Support Team
on 20 Jul 2023
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?
Accepted Answer
MathWorks Support Team
on 14 Jul 2023
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 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!