Integrating C Code with Simulink

Learn to integrate C code into Simulink models using various techniques.
Includes NEW Topic: Deploying integrated C code

Complimentary Services: Post training email support & 1-hr consultation session within 1 month after the course completion!

TechSource Systems Pte Ltd

Course
Highlights

This one-day course presents multiple methods for integrating C code into Simulink® models. The topics in the training include the C Caller and C Function blocks, Legacy Code Tool for wrapping external C functions into Simulink, and manually written C MEX S-functions.

TechSource Systems Pte Ltd

Who Should
Attend

Engineers, scientist and researchers who wish to integrate applications written in C into Simulink model. This training is for intermediate to advanced users.

TechSource Systems Pte Ltd

Course
Prerequisites

Simulink for System and Algorithm Modeling, MATLAB Fundamentals, and knowledge of C programming

TechSource Systems Pte Ltd

Course
Benefits

Upon the completion of this course, the participants will be able to design integrated Simulink model with C and Embedded MATLAB.

Partners

TechSource Systems Pte Ltd
TechSource Systems Pte Ltd

TechSource Systems is MathWorks Authorised Reseller and Training Partner

Upcoming Program

  • Please keep me posted on the next schedule
  • Please contact me to arrange customized/ in-house training

Course Outline

Integrating External C Code Using Simulink Blocks

Objective: Integrate C code into Simulink models using the C Caller and C Function blocks.

  • Integrating algorithmic C code
  • Integrating C code with custom data types
  • Integrating code with states
  • Sharing custom C code blocks
TechSource Systems Pte Ltd
TechSource Systems Pte Ltd

Creating S-Functions from Legacy Code

Objective: Integrate C code into a Simulink model using automated tools.

  • Calling external C functions with Legacy Code Tool
  • Handling states
  • Sharing compiled S-functions

Writing Wrapper S-Functions

Objective: Integrate C code into a Simulink model by manually writing C MEX S-functions.

  • Writing C MEX S-functions
  • Calling external code from C MEX S-functions
  • Work vectors
  • Debugging C MEX S-functions
  • Multirate C MEX S-functions
TechSource Systems Pte Ltd
TechSource Systems Pte Ltd

Deploying Integrated C Code

Objective: Explore the procedures and limitations for automatically generating code with Simulink Coder™.

  • Generating code from C Caller and C Function blocks
  • Generating code from C MEX S-functions
  • Function inlining
  • Integrating target-specific code

C Code Integration Methods Review

Objective: Review code integration methods and discuss the pros and cons of each.

  • Review of all methods of code integration
  • How to choose a code integration method
TechSource Systems Pte Ltd
QUICK ENQUIRY