When creating an instance of a module in xgconf, it appears that bios 6 gives the instance a (very long) default name. The on-line xgconf user guide says "If you want to change the name property of an instance, you must do that in the Source tab.". Since the guide gives no example, I tried to following. Note that I somehow managed to get timer1's name to show up properly in the outline. However, timer2 still has the old default name.
var ti_sysbios_hal_Timer = xdc.useModule('ti.sysbios.hal.Timer'); var instti_sysbios_hal_Timer1Params0 = new ti_sysbios_hal_Timer.Params(); instti_sysbios_hal_Timer1Params0.period = 500; instti_sysbios_hal_Timer1Params0.instance.name = "timer1"; Program.global.timer1 = ti_sysbios_hal_Timer.create(1, "&myISR", instti_sysbios_hal_Timer1Params0); var instti_sysbios_hal_Timer1Params1 = new ti_sysbios_hal_Timer.Params(); instti_sysbios_hal_Timer1Params1.period = 2000; instti_sysbios_hal_Timer1Params1.instance.name = "timer2"; // *** this is my attempt to rename this timer var instti_sysbios_hal_Timer1 = ti_sysbios_hal_Timer.create(2, null, instti_sysbios_hal_Timer1Params1);
And here is the outline showing timer2 with the old default name:
What am I doing wrong? How do I rename the timer so that it shows up properly in the outline?
Thx
MikeH