| Contents | Index |
IDE_Obj.add(filename,filetype)
This function supports the following IDEs:
Analog Devices VisualDSP++
Eclipse IDE
Green Hills MULTI
Texas Instruments Code Composer Studio v3
Use IDE_Obj.add(filename,filetype) to add an existing file to the active project in the IDE. Using the add function is equivalent to selecting Project > Add Files to Project in the IDE.
Before using add:
Use the constructor function for your IDE to create an IDE handle object, such as IDE_Obj.
Make the project active in the IDE using the activate method.
You can add any file type your IDE supports to your project. Consult the documentation for your IDE for detailed information about supported file types.
All Supported File Types and Extensions
| File Type | Extensions Supported | CCS IDE Project Folder |
|---|---|---|
C/C++ source files | .c, .cpp, .cc, .cxx, .sa, .h,.hpp,.hxx | Source |
Assembly source files | .a*, .s* (excluding .sa), .dsp | Source |
Object and library files | .o*, .lib, .doj, .dlb | Libraries |
Linker command file | .cmd, .ldf | Project Name |
| VDK support file | .vdk | Not applicable |
DSP/BIOS file (only with CCS IDE) | .tcf | DSP/BIOS Config |
Note CCS IDE drops files in the appropriate project folder, indicated in the right-most column of the preceding table. |
add places the file specified by filename in the active project in the IDE.
Start by creating an IDE handle object, such as IDE_Obj using the constructor for your IDE. Then enter the following commands:
IDE_Obj.new('myproject','project'); % Create a new project.
IDE_Obj.add('sourcefile.c'); % Add a C source file.activate | cd | new | open | remove

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |