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 could result in a CPU overload during real-time simulation.
Consider decreasing the complexity of your model by inlining Simscape run-time parameters in your model, if your simulation:
Generates small steps during model preparation. For information, see Real-Time Model Preparation Workflow.
Has a long execution time when you are configuring your model for real-time simulation. For information, see Real-Time Simulation Workflow.
Overruns during real-time simulation on target hardware.
For information on inlining Simscape run-time parameters, see Manage Simscape Run-Time Parameters.