Part Number: TMS320F280049C
Tool/software: Code Composer Studio
1. I added below lines to the file f280049c.gel file under, C:\ti\ccs1000\ccs\ccs_base\emulation\gel.
menuitem "Record Variables";
hotmenu startTimer()
{
// GEL_SetTimer(milliseconds, timer_id, "callback");
// Parameters
// milliseconds: specifies the amount of time in milliseconds that should elapse between callbacks.
// timer_id: specifies a number to uniquely identify this timer.
// callback: is a string representing the GEL expression to evaluate every time the timer fires.
GEL_SetTimer(120, 1, "recordVariables()");
}
hotmenu stopTimer()
{
// GEL_CancelTimer(timer_id);
// Parameter:
// timer_id: the id of the timer to cancel
GEL_CancelTimer(1);
}
recordVariables()
{
GEL_TextOut("CpuTimer0.InterruptCount: %d \n",,,,,CpuTimer0.InterruptCount);
}
2. I verified I see the after the GEL script is loaded in CCS, startTimer() and stopTimer() functions appears in a Record Variables hotmenu, under Scripts in the menu bar.
3. I enabled the Output File option and entered the file location, and file name.
I see the file getting created, But, no content. Why do I not see the values of the global variables I have in expression window recorded?
