What Is Simulink Code Inspector? - MATLAB & Simulink
Video Player is loading.
Current Time 0:00
Duration 1:52
Loaded: 8.84%
Stream Type LIVE
Remaining Time 1:52
 
1x
  • Chapters
  • descriptions off, selected
  • en (Main), selected
    Video length is 1:52

    What Is Simulink Code Inspector?

    Simulink Code Inspector™ automatically compares generated code with its source model to satisfy code-review objectives in DO-178 and other high-integrity standards. The code inspector systematically examines blocks, state diagrams, parameters, and settings in a model to determine whether they are functionally equivalent to operations, operators, and data in the generated code.

    Simulink Code Inspector provides detailed model-to-code and code-to-model traceability analysis. It generates functional equivalence and traceability reports that you can submit to certification authorities to satisfy DO-178 software coding verification objectives. It includes an app that lets you check model compatibility and inspect the code. Code inspection results are displayed in the model and in the associated code.

    Support for industry standards is available through DO Qualification Kit (for DO-178).

    Published: 17 Nov 2021

    Welcome to the introduction to Simulink Code Inspector, a tool that automatically verifies generated code. In this video, you will learn the features of the Simulink Code Inspector app. The Simulink Code Inspector is a qualifiable tool for use on DO-178 projects and can also be used with other certification standards.

    From a model, you can open the Code Inspector app from the tool strip. The Check Compatibility button allows you to verify your model is compatible with the limited subset supported by Code Inspector, and the results can be viewed in the Simulink Model Canvas. If code is not already been generated, you can generate it from the app and view the code from within the Model Canvas.

    Use the Inspect button to run Code Inspector on the generated code. The inspection verifies the generated code against the model, eliminating the need for manual code review. The inspection results can be viewed from within the app. A formal report can be generated from the app or certification evidence. Model and code traceability can be exported to an Excel spreadsheet.

    To learn more details about how Simulink Code Inspector works, you can run the example using the documentation links or look at the example videos that are also provided if you do not have a product license. A product trial can be requested from the link on this page.

    Related Products