Main Content

Decrease Computational Cost by Inlining Simscape Run-Time Parameters

Simscape™ run-time parameters tend to increase the complexity of your code and, therefore, the computational cost of simulating your model. While the additional cost is not typically problematic for desktop simulation, it can result in a CPU overload during real-time simulation.

Consider inlining Simscape run-time parameters in your model, if your simulation:

  • Generates small steps during model preparation. For information, see Model Preparation Process.

  • Has a long execution time when you are configuring your model for real-time simulation. For information, see Fixed-Cost Simulation Process.

  • Overruns during real-time simulation on target hardware.

For information on inlining Simscape run-time parameters, see Manage Simscape Run-Time Parameters.

Related Topics