Products

BVT Surface Fleet Develops On-Board Trainer Plant Simulation for Royal Navy Using MathWorks Tools

"The simulation engineers produced a high-level, tested description of the C code—the Simulink model—which the software engineers used to generate the code for the application. Without MathWorks tools I don’t think we could have completed the trainer with as few resources as we did." - Peter Worthington, BVT Surface Fleet

Electrodynamics Associates Designs High-Performance Generator Controller for the Military with Simul

"Other tools only allowed us to view certain parameters of the machine. Now, we can look at all of them. MathWorks tools are orders of magnitude better than any other tool on the market." - Jay Vaidya, Electrodynamics Associates

Embedded Coder

Description

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.