Generate C Code Window

This window is used to select the names of the generated C Code files, as well as the directory where the files will be written.

API Code & CAM Code Files

There are always four files generated, no matter how many chips or CAMs are present, or what combination of generation options have been chosen. The CAM C Code Files will contain functions that have been checked in the CAM C Code Functions Window (or the Global C Code Functions Window). All checked functions across all CAMs in the circuit are output to these two files. All of the API functions and configuration data are output to the API C Code Files. These files may be renamed to any file name allowed by the operating system.

Destination Directory

Every file generated is output to the same directory. This output directory may be the directory of the current circuit file, or a directory that is specified. If the directory is that of the current circuit file, then anytime the location of the circuit file changes, this directory will change with it. This ensures that the C Code files will always be generated in the same directory as the corresponding .ad2 file. If Specify Directory is selected, then the output directory may be any directory accessible or creatable by the operating system. This directory will remain the same until it is explicitly changed.

Generate

The Generate button is pressed to create the files. A notification will be displayed when the generation is complete. Pressing the Generation Options… button opens the C Code Generation Options Window, and pressing the CAM Functions… button opens the Global C Code Functions Window.