Please note as of Wednesday, August 15th, 2018 this wiki has been set to read only. If you are a TI Employee and require Edit ability please contact x0211426 from the company directory.
Code Composer Watch Window: Using a Script to Populate
In Code Composer Studio 3.3 gel files were often used to easily populate the watch window with a defined set of variables. In Code Composer Studio 4 this is not possible by using gel files. In general, CCS 4 uses a workspace to save and restore a particular debug environment.
It may be desirable, however, to provide a simple script that will populate the watch window. This is helpful for collections of examples where it is not practical to supply a workspace that corresponds to each example.
Note: CCS 4 and CCS 5
Note: In CCS V4 the syntax was somewhat relaxed and the following script would have worked. Notice in the CCS 5 version, the ()'s around each function call and the ; after each function. Also notice that you can no longer set the view format programatically 
Step 2: Open the Code Composer Studio scripting console
In Code Composer Studio, open the scripting console by using the view->scripting console menu
Step 3: Run the script
Click on the "Open Command File" at the top right of the scripting console.
Navigate to the script you wrote in step 1 and select "open" The script will now run and populate the watch window.
The result is the following watch window.
In the scripting console window you can type commands as well.
- To get help on a particular command type help and the command: js:> help expAdd
- To get a list of all commands type help followed by a tab.