If your real-time application generates an overrun, to improve application execution time:
Run the Simulink®
Real-Time™ Performance Advisor Checks. Use the
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
To access the checks:
Open the Performance Advisor. On the Debug tab, click Performance Advisor > Performance Advisor.
In the Performance Advisor window, under
In the left pane, expand the Real-Time folder, and then the Simscape checks folder.
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).