Main Content

PrepareSimscapeElectricalModels for Real-Time Simulation UsingSimscapeChecks

If you have a金宝app®Real-Time™license, you can optimize your model for real-time execution using theExecute real-time applicationactivity mode in the Simulink Performance Advisor. This mode includes several checks specific to physical models. For example, the Simulink Performance Advisor identifies Simscape™Solver Configurationblocks with settings that are suboptimal for real-time simulation. For optimal results,Solver Configurationblocks should have theUse local solverandUse fixed-cost runtime consistency iterationsoptions selected.

The checks are organized into folders. You can use the checks in theSimscape checksfolder for all physical models. Subfolders contain checks that target blocks fromSimscape Electrical™and other add-on products such asSimscape Driveline™andSimscape Multibody™.

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

To run theSimulink Real-TimePerformance Advisor Checks:

  1. In the Simulink Editor menu bar, selectDebug>Performance Advisor.

  2. In the Performance Advisor window, under活动, selectExecute real-time application.

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

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

Related Topics