Main Content

Troubleshoot Hardware-in-the-Loop Simulation Issues

If your real-time application generates an overrun, to improve application execution time:

  • Use the processes described in Real-Time Model Preparation Workflow, Real-Time Simulation Workflow, and Hardware-in-the-Loop Simulation Workflow.

  • Run the Simulink® Real-Time™ Performance Advisor Checks. Use the Execute real-time application activity mode in Performance Advisor, which includes checks specific to physical models. The mode helps you optimize your Simscape™ model for real-time execution. The checks are organized in folders. The checks in the Simscape checks folder are applicable to all physical models. Subfolders contain checks that target blocks from add-on products such as Simscape Electrical™ and Simscape Driveline™.

    To access the checks:

    1. Open the Performance Advisor. On the Debug tab, click the Performance button.

    2. In the Performance Advisor window, under Activity, select Execute real-time application.

    3. In the left pane, expand the Real-Time folder, and then the Simscape checks folder.

    4. Run the top-level Simscape checks. If your model contains blocks from an add-on product, also run the checks in the subfolder corresponding to that product.

    For more information, see Troubleshoot Unsatisfactory Real-Time Performance (Simulink Real-Time).

A Simulink Real-Time simulation can also fail due to development and target computer issues, changes in underlying system software, I/O module issues, and procedural errors. To address these issues, follow the workflow in Troubleshooting Basics (Simulink Real-Time). For more information, see Troubleshooting in Simulink Real-Time (Simulink Real-Time).

Related Topics