Main Content

Troubleshoot Simscape Run-Time Parameter Issues

Below, you can find the solutions to some common issues you may encounter while getting started with run-time parameters.

Simscape Run-Time Parameter Setting Not Visible

If a Simscape™ parameter is run-time configurable, its Configurability drop-down will show either Compile-time or Run-time. If the Configurability setting is not visible, then the parameter is strictly compile-time configurable. For a detailed explanation of how to enable run-time parameters, see Specify Simscape Run-Time Parameters.

Simulation Does Not Respond to Simscape Run-Time Parameter Change

If you use an expression to define a variable for a Simscape run-time parameter, you might need to recompile the model. When Simulink® Coder™ encounters an unsupported expression, it only codes the current numerical value, and you will see a warning. For information on the limitations for using expressions for run-time configurable parameters, see Limitations for Block Parameter Tunability in Generated Code (Simulink Coder).

If you change the value of a Simscape run-time parameter during a simulation, the change will take effect the next time you run the simulation. To see how to change the value of a Simscape run-time parameter, see Specify and Change a Simscape Run-Time Parameter and Change Parameter Values on Target Hardware.

Related Topics