MATLAB Link for Code Composer Studio Development Tools    
activate

Make the specified project, file, or build configuration active in CCS IDE

Syntax

Description

activate(cc,'objectname','type') makes the object specified by objectname and type the active document window or project in CCS IDE. While you must include the link cc, it does not identify the project or file you make active. activate accepts one of three strings for type

String
Description
'project'
Makes an existing project in CCS IDE active (current). You must include the .pjt extension in objectname.
'text'
Makes the specified text file in CCS IDE the active document window. Include the file extension in objectname when you specify the file.
'buildcfg'
Makes the specified build configuration in CCS IDE active. Note that build configuration is similar to project configuration.

To specify the project file, text file, or build configuration, objectname must contain the full project name with the .pjt extension, or the full pathname and extension for the text file.

When you activate a build configuration, activate applies to the active project in CCS IDE. If the build configuration you specify in activate does not exist in the active project, MATLAB returns an error that the specified configuration does not exist in the project. Fix this error by using activate to make the correct project active, then use activate again to select the desired build configuration.

Examples

Create two projects in CCS IDE and use activate to change the active project, build configuration, and document window.

Now make two projects in CCS IDE.

In CCS IDE, myproject2 is now the active project, since you just created it. With two projects in CCS IDE, add a new build configuration to the second project.

If you switch to CCS IDE, you see myproject2.pjt in bold lettering in the project view, signaling it is the active project. When you check the active configuration list, you see three build configurations--Debug, Release, and Testcfg. Currently, Testcfg is the active build configuration in myproject2.

Finally, add a text file to myproject1 and make it the active document window in CCS IDE. In this case, you add the source file for the ADC block.

See Also

build, new, remove


  Functions--Alphabetical List add