How to View Source Code in Interactive Models

This page explains how to include and view source code blocks in interactive models.

Support for ASCET module ESDL block in documentation

ESDL in ASCET is a high-level, formal language used within the ASCET environment to design and develop embedded software applications for automotive and other embedded systems. EHandbook now supports ESDL code representation through code viewer. ESDL code can be opened through model and also visible in TOC structure under Source Code. Pass command line argument -includeSourceCode to process ASCET Module ESDL blocks and to store them in the container. Additionally, local search and global search is also supported in Code Viewer.

image25
Figure 1. ESDL code blocks rendered in EHANDBOOK-NAVIGATOR
image26
Figure 2. ESDL code blocks rendered in ASCET

EHandbook supports Matlab function code representation through code viewer. Matlab function code can be opened by clicking on the matlab function blocks from model viewer. Pass command line argument -includeSourceCode to process Matlab function code blocks and to store them in the container. Local search and global search is also supported in Code Viewer.

image28
Figure 3. Matlab function code blocks rendered in EHANDBOOK-NAVIGATOR
image27
Figure 4. Matlab function code blocks rendered in MATLAB