Products & Services Solutions Academia Support User Community Company

Learn more about Embedded IDE Link   

activate - (For CCS) Activate specified CCS IDE project, file, or build configuration

Syntax

activate(cc,'objectname','type')

Description

Use the activate(cc,'objectname','type') method to make a project file, text file, or build configuration the active window in CCS IDE. After a project file, text file, and build configuration becomes active, you can apply other methods to it.

Inputs

cc

cc is a handle for an instance of CCS IDE. Before using the activate method, create cc using the ticcs function.

objectname

objectname is the project file, text file, or build configuration file the activate method makes active. For project and text files, enter the full file name including the extension. For build configurations, enter 'Debug', 'Release', or any custom configuration. Before using the activate method on a build configuration, you first activate the project that contains the build configuration.

type

type is the type of file objectname refers to. If you omit type from the activate method, type defaults to 'project'. Enter one of the following strings for type:

'project' — Indicates that objectname is a project file

'text' — Indicates that objectname is a text file

'buildcfg' — Indicates that objectname is a build configuration

Examples

This example demonstrates how to use activate to change the active project and document window.

After you create the projects, CCS IDE displays the active project in bold lettering in the project view. Similarly, after you create the new build configuration, CCS IDE displays Testcfg as the active build configuration in myproject2.

cc=ticcs;			%Create a handle for TI CCS.
visible(cc,1)	%Make CCS IDE visible.
new(cc,'myproject1.pjt','project')	%Create a new project.
new(cc,'myproject2.pjt')		%If omitted, type defaults to 'project'.
	%myproject2 is active because you created it last.

new(cc,'Testcfg','buildcfg')  %Create a build config in myproject2.
activate(cc,'myproject1.pjt','project') % Make myproject1 active.
add(cc,'c6711dsk_adc.c')	%Add a .c file to myproject1.
activate(cc,'c6711dsk_adc.c','text') %Activate the .c file.

See Also

build, new, remove

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS