Clear Filters
Clear Filters

Change referenced model simulation mode programmatically

10 views (last 30 days)
I have a complex model involving multiple referenced models in "Accelerator" simulation mode.
I want to do model coverage on all models, which requires having the "Normal" simulation mode.
I am looking for a way to recursively change the simulation mode of every referenced model to "Normal" prior to running the simulation. Ideally, something similar to Simulink.BlockDiagram.buildRapidAcceleratorTarget would be best.

Answers (1)

Aveek Podder
Aveek Podder on 20 Oct 2017
You can use 'set_param' command to change the simulation mode of the model.
The following command can be used to set the simulation mode of the model.
For more information on programmatic interaction with the Acceleration modes, please go through the following link:


Find more on Modeling in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!