Command-line execution - Clocks Tool

This section describes the Command Line Interface (CLI) commands supported by the Clocks Tool.
Table 1. Commands supported in Clocks
Command name Definition and parameters Description Restriction Example
​​Enable tool​ ​-Enable ​Enables the tool if it is disabled in the current configuration. ​Requires -HeadlessTool Clocks ​-HeadlessTool Clocks

-Enable
​​​​Import C files ​​​​-ImportC​

​​​​Imports .c files into the configuration

(disables other tools when importing into an empty configuration).
​Requires ​​-HeadlessTool​ Clocks

-HeadlessTool Clocks

​​-ImportC C:/imports/file1.c C:/imports/file2.c​​
​​Export all generated files

(to simplify all exports commands to one command)
​-ExportAll ​​Exports generated files (with the source code and all the available export objects). The code is regenerated before the export.

Includes -ExportSrc and in framework -ExportMEX​

The argument is expected to be a folder.

​​Requires -HeadlessTool Clocks

-HeadlessTool Clocks

​-ExportAll C:/exports/generated​
​Export Source files ​-ExportSrc

​Exports generated source files.

The code is regenerated before the export.

The argument is expected to be a folder.

​Requires ​​-HeadlessTool​ Clocks

-HeadlessTool Clocks

​​-ExportSrc C:/exports/src
​Export HTML report file ​-ExportHTML

​Exports generated HTML report file.

The code is regenerated before the export.

The argument is expected to be a folder.

​Requires ​​-HeadlessTool​ Clocks

-HeadlessTool Clocks

​-ExportHTML C:/exports/html
Export registers ​-ExportRegisters ​Export registers tab into folder.

Code is regenerated before the export.

The argument is expected to be a folder.
​Requires -HeadlessTool Clocks ​-HeadlessTool Clocks -ExportRegisters C:/exports/regs