Student Programs

EcoCAR2 Training Resources

Controller Implementation with Automatic Code Generation

Once the design of the control algorithm has been validated to be both behaviorally and mathematically correct, the next step is to deploy the algorithm to an embedded processor. MathWorks provides Real-Time Workshop and Real-Time Workshop Embedded Coder for automatically generating highly efficient C/C++ code from control models. The generated code is capable of running on virtually any microprocessor or real-time operating system (RTOS). This code can be integrated back into Simulink for software-in-the-loop testing, or deployed directly to a supported microprocessor for processor-in-the-loop testing.

Full traceability between the requirements/specifications, the model, test vectors, and the C/C++ code can easily be included through user defined links, thereby ensuring that design choices made earlier in the development cycle are fully documented within the generated code. The ability to navigate through all phases of a design provides the engineers responsible for testing, deploying, and integrating C/C++ code full access to the insight of the entire multi-disciplinary design team during the final test and calibration phase. The insight into the model coupled with the ability to automatically generate C Code will allow the design to remain flexible to change even up to the final stages of deployment.

  • Embedded Coder: Generate C and C++ code optimized for embedded systems
  • Simulink Check: Verify compliance with style guidelines and modeling standards
  • Simulink Coder: Generate C and C++ code from Simulink and Stateflow models
  • Simulink Coverage: Measure test coverage in models and generated code
  • Requirements Toolbox: Author, manage, and trace requirements to models, generated code, and test cases

Code generation, Validation, and Verification Tool

Examples

Webinars

White Papers

MATLAB Central

With more than 10,000 submissions, MATLAB Central, the MathWorks hosted file exchange, is an extensive source of user-contributed materials.

Contact us for more information.