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, a configurability drop-down will show either Compile-time or Run-time next to that parameter. If the configuration setting is not visible, then either the parameter is strictly compile-time configurable or the Simscape option for showing run-time parameter settings is not enabled. For a detailed explanation of how to enable run-time parameters, see Show Simscape Run-Time Parameter Settings.

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