| Embedded IDE Link™ VS | ![]() |
add(vd,'my_file')
add(vd,'my_file') adds the file my_file to the active project from the current MATLAB working directory. If you do not have an active project in the IDE, MATLAB returns an error message and does not add the file. You can specify the file by name, if the file is in your MATLAB or Embedded IDE Link VS software working directory, or provide the fully qualified path to the file when the file is not in your working directories.
To add a file add.txt that is in your MATLAB working directory to the IDE, use the following command:
add(vd,'add.txt');
where vd is the handle for your vdsplink object. If the file add.txt is not in either working directory, the command changes to include the full path to the file:
add(vd,'fullpathtofile\add.txt');
You can add files of all types that the IDE supports. The following table shows the supported file types.
| Supported File Type | File Extension |
|---|---|
| ANSI C/C++ source files | *.cpp, *.c, *.cxx, *.h, *.hpp, *.hxx |
| Assembly source files | *.asm, *.dsp |
| Object and Library files | *.doj, *.dlb |
| Linker Command files | *.ldf |
| VisualDSP++ support file | *.vdk |
![]() | activate | address | ![]() |
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |