Viewing the Generated Code
In the block diagram editor, open the File menu, point toExport, then to Generated Code, and select Flat, Recursive or Generic to write the code for the component to the file system.
Flat
Files out code for the currently selected component.
Recursive
Files out code for the currently edited component and all referenced components.
Generic
Files out generic code for external make.
The Windows path selection window opens.
- Select a path.
Click OK to write the code to the directory you selected.
The generated code is written to the specified location. You can open the file with any text or C code editor. If code has been stored recursively, a separate file is created for each component. The names of the generated files are listed in the ASCET monitor window.
Another way of viewing code is to select a user-defined external editor from ASCET (e.g. Notepad, Visual Studio Code, etc.). As the external editor is connected via a file system, files with the suffixes *.c and *.h must be associated with the editor in the Windows configuration.
From the Build menu, select View Generated Code.
C code is generated and displayed in an external editor. The text editor can be selected in the ASCET option window, ACSII Editor node (see Setting ASCET Options).
See also