This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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. In the Simulink Editor menu bar, select Analysis > Performance Tools > Performance Advisor.

    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) and Simulink Real-Time Performance Advisor Checks (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 Troubleshoot with Confidence Test (Simulink Real-Time). For more information, see Troubleshooting in Simulink Real-Time (Simulink Real-Time)

Related Topics