Embedded Coder

Commenting, Tracing, and Documenting Code

Embedded Coder offers several capabilities for examining generated code for your MATLAB files and functions or your Simulink models and subsystems. Using these capabilities, you can:

  • Generate a code report describing the modules and model configuration settings
  • Control identifier formats for generated global data, data types, and functions
  • Include MATLAB code as comments in generated code, including function help text

With Simulink, Embedded Coder also provides the ability to insert high-level requirements as code comments with links to the requirement source (requires Simulink Verification and Validation) The code report for Simulink code generation also includes a code interface description, traceability report, and display of generated source files and code. Bidirectional links exist between the model and generated code, making it easy to navigate between every line of code and its corresponding Simulink model element, including subsystems, blocks, MATLAB functions and code, and Stateflow charts and transitions. You can click a link to highlight the corresponding model element or line of code, facilitating code reviews and debugging.

Simulink code generation report highlighting bidirectional traceability between algorithm and implementation.
Simulink code generation report highlighting bidirectional traceability between algorithm and implementation.
Next: Executing and Verifying Code

Try Embedded Coder

Get trial software

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

View webinar