Training - Courses
SLEX: Integrating Code with Simulink |
Note: A 1 hour test session will be scheduled one day prior to the first day of class. This session is to verify that the visual and audio connection is working properly on your computer. The required product software should be installed for the test session. It is highly recommended that you attend this session to ensure a successful and timely class start.
This one-day course presents multiple methods for integrating code into Simulink® models. The focus is on integrating C and MATLAB®. Topics discussed include C MEX S-functions, Embedded MATLAB® code, and the Legacy Code Tool for wrapping external C functions into Simulink. This course is intended for intermediate to advanced Simulink users.
VIEW SCHEDULE and Register SHARE with Manager/Colleague| Detailed course outline |
|---|
| Day 1 | |
|---|---|
| Introduction | Objective: Obtain a quick overview of The MathWorks and discuss course logistics. |
| Code Integration Methods | Objective: Become familiar with the various code integration methods and discuss how a Simulink model interacts with user-defined blocks.
|
| Transitioning from MATLAB to Simulink | Objective: Integrate MATLAB code into Simulink models.
|
| Calling External Routines | Objective: Integrate C code into a Simulink model using automated tools.
|
| Writing Wrapper S-Functions | Objective: Integrate C code into a Simulink model by manually writing C MEX S-functions.
|
| Code Generation Considerations | Objective: Learn the procedures and limitations for automatically generating code with Real-Time Workshop® when using the code integration methods described in the course.
|
| Code Integration Methods Review | Objective: Review the code integration methods and discuss the pros and cons of each.
|
| Conclusion | Objective: Find resources for further information and training on the topic. Evaluate the class. |
Prerequisites
Simulink for System and Algorithm Modeling, MATLAB Fundamentals, and knowledge of C programming
Course Length - 1 day