Is it possible to tune parameters in a model built of blocks from the Simscape electrical library?

1 view (last 30 days)
Attempting to use rsimgetrtp to build a Rapid Accelerator standalone executable target from a model of an electrical circuit. The parameters declared as tunable in the Model Configuration dialogue, but when executed the code returns warnings like:
Warning: Reducing expression 'Res92' in parameter field 'R' of 'Electrical10x10/PipeR92' to its numerical equivalent because this
field is marked not tunable. This expression resolves to tunable variables (Res92 (base workspace)). You will be unable to tune
this expression during model execution
Is it possible to declare Simscape parameters as tunable, and use a Rapid Accelerator target to avoid recompiling the model for each simulation?

Answers (1)

Sabin
Sabin on 27 Jan 2023
Simscape™ run-time parameters are coded as variables with values that you can change before or between simulations without recompiling the model. Check the following resource to learn more about:

Categories

Find more on Simscape Electrical in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!