| Embedded IDE Link™ CC | ![]() |
Make specified project, file, or build configuration active in CCS IDE
activate(cc,'objectname','type')
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 path name 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® software 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.
Create two projects in CCS IDE and use activate to change the active project, build configuration, and document window.
cc=ticcs; visible(cc,1)
Now make two projects in CCS IDE.
new(cc,'myproject1.pjt','project') new(cc,'myproject2.pjt')
In CCS IDE, myproject2 is now the active project, because you just created it. With two projects in CCS IDE, add a new build configuration to the second project.
new(cc,'Testcfg','buildcfg')
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.
activate(cc,'myproject1.pjt','project') % Makes myproject1 the active project. add(cc,'c6711dsk_adc.c') activate(cc,'c6711dsk_adc.c','text')
![]() | Functions — Alphabetical List | add | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |