Circuit Code Files Screen

Circuit code files contain the test code that can be used to test the board.

This screen allows the user to add additional code files and XJEase module files to the project (or to remove them). For example, such files might contain a set of common test functions used across several projects or be used just to allow you to modularise your code.

This screen is not for adding code to test device files. Items such as memory tests which may be shared between multiple types of test device should be added to each of the relevant device files in the Test Device Files screen.

The screen contains a Navigator to select the additional code file to edit. All open files are displayed as tabbed documents. These can be docked in various ways, including side by side.

The Circuit Code Files screen can be undocked from the rest of XJDeveloper. In this mode it will appear as a separate window with its own menu system and toolbar.

Menus and Toolbars

When using this screen and the Test Code Editor, various options are added to the File, Edit, and View menus of XJDeveloper. The Debug menu is also available from this screen.

  • Click Add... to add a new circuit code file to the project or to add an (existing) additional code file to the project, either from disk or from an XJEase Library.
  • Click Remove to remove the selected file from the project.
  • Use the Save... or Save All... buttons to save files that have been edited.
  • Use the Move File Up and Move File Down buttons to re-order the files.
  • The order of files can be important. For example, if a file defines any constants then this file must be in the list above any file that uses the constant.

Navigator

The navigator shows all files currently associated with the project. If a file has been added from an XJEase library, the name of the library will appear in the respective column in the navigator. Double-clicking on a file in the list will open the file and display it as a new tabbed document containing a Test Code Editor. Once the code has been modified the file must be saved for the project to be updated. When the project is updated the Errors pane will be updated with any syntax errors found/fixed during editing.

There are at present some situations in which changing a circuit code file may require the device files for the project to also be recompiled in order to generate the Errors list correctly. This can be done manually if required by using the Recompile Code button on the Tools menu.