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 inReal-Time Model Preparation Workflow,Real-Time Simulation Workflow, andHardware-In-The-Loop Simulation Workflow.

  • Run the金宝app®Real-Time™Performance Advisor Checks. Use theExecute real-time applicationactivity 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 theSimscape checksfolder are applicable to all physical models. Subfolders contain checks that target blocks from add-on products such asSimscape Electrical™andSimscape Driveline™.

    To access the checks:

    1. Open the Performance Advisor. On theDebugtab, clickPerformance Advisor>Performance Advisor.

    2. In the Performance Advisor window, underActivity, selectExecute real-time application.

    3. In the left pane, expand theReal-Timefolder, and then theSimscape checksfolder.

    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, seeTroubleshoot Unsatisfactory Real-Time Performance(Simulink Real-Time).

ASimulink Real-Timesimulation 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 inTroubleshooting Basics(Simulink Real-Time). For more information, seeTroubleshooting in Simulink Real-Time(Simulink Real-Time).

Related Topics