Prepare Simscape Electrical Models for Real-Time Simulation Using Simscape Checks

If you have a Simulink® Real-Time™ license, you can optimize your model for real-time execution using the Execute real-time application activity mode in the Simulink Performance Advisor. This mode includes several checks specific to physical models. For example, the Simulink Performance Advisor identifies Simscape™ Solver Configuration blocks with settings that are suboptimal for real-time simulation. For optimal results, Solver Configuration blocks should have the Use local solver and Use fixed-cost runtime consistency iterations options selected.

The checks are organized into folders. You can use the checks in the Simscape checks folder for all physical models. Subfolders contain checks that target blocks from Simscape Electrical™ and other add-on products such as Simscape Driveline™ and Simscape Multibody™.

Before you run the checks, use the processes described in Real-Time Model Preparation Workflow, Real-Time Simulation Workflow, and Hardware-In-The-Loop Simulation Workflow.

To run the Simulink Real-Time Performance Advisor Checks:

  1. In the Simulink Editor menu bar, select Debug > 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 and the Simscape Electrical checks. If your model contains blocks from other add-on products, also run the checks in the subfolder corresponding to that product.

Related Topics