Embedded Coder

Executing and Verifying Code

Embedded Coder enables you to incorporate generated code into your code execution environment.

With MATLAB, the code generated from Embedded Coder executes using the same execution framework as provided by MATLAB Coder.

With Simulink, Embedded Coder significantly extends the real-time execution framework provided by Simulink Coder. By default, the code can be executed with or without a real-time operating system (RTOS) and in single-tasking, multitasking, or asynchronous mode. You can also verify the code execution results using software-in-the-loop (SIL) and processor-in-the-loop (PIL) testing.

Generating a Main Program

Embedded Coder generates an extensible main program based on information you provide for deploying the code in your real-time environment. This capability lets you generate and build a complete customized executable from your model.

Grouping Rates

Embedded Coder generates single-rate or multirate code using periodic sample times specified in the model. For multirate, multitasking models, it employs a strategy called rate grouping that generates separate functions for the base rate task and for each sub-rate task in the model.

Using Links and Targets

Automated deployment, integration, optimization, and execution of generated code is available for supported third-party IDEs, microprocessors, and RTOSs, including Wind River Systems® VxWorks®.

Performing SIL and PIL Testing

Embedded Coder automates execution of generated code in Simulink for SIL testing or on the embedded target for PIL testing using Simulink simulation modes or S-function blocks. Code generation verification APIs help automate test execution and comparison of test results to simulation results from the original model. Integration with third-party tools enables structural code coverage analysis to measure test completeness. Code profiling analysis provides execution time on host or target processors.

Try Embedded Coder

Get trial software

Generación de Código C para Producción con Simulink y Embedded Coder

View webinar