| Embedded IDE Link™ CC | ![]() |
cd(cc,'directory')
wd = cd(c,'directory')
cd(cc,pwd)
cd(cc,'directory') changes the CCS IDE working directory to the directory identified by the string dir. For the change to take effect, dir must refer to an existing directory. You can give the directory string either as a relative path name or an absolute path name including the drive letter. CCS IDE applies relative path names from the current working directory.
wd = cd(c,'directory') returns the current CCS IDE working directory in wd.
Using cc to change the CCS IDE working directory does not affect your MATLAB® environment working directory or any MATLAB environment paths. Use the following function syntax to set your CCS IDE working directory to match your MATLAB environment working directory.
cd(cc,pwd) where pwd calls the MATLAB function pwd that shows your present MATLAB working directory and changes your current CCS IDE working directory to match the path name returned by pwd.
When you open a project in CCS IDE, the folder containing the project becomes the current working folder in CCS IDE. Try opening the tutorial project volume.mak in CCS IDE. volume.mak is in the tutorial files from CCS IDE. When you check the working directory for CCS IDE in the MATLAB environment, you see something like the following result
wd=cd(cc) wd = D:\ticcs\c6000\tutorial\volume1
where the drive letter D may be different based on where you installed CCS IDE.
Now check your MATLAB environment working directory:
pwd ans = J:\bin\win32
Your CCS IDE and MATLAB environment working directories are not the same. To make the directories the same, use the cd(cc,pwd) syntax:
cd(cc,pwd) % Set CCS IDE to use your MATLAB working directory. pwd % Check your MATLAB working directory. ans = J:\bin\win32 cd(cc) % Check your CCS IDE working directory. ans = J:\bin\win32
You have set CCS IDE and MATLAB environment to use the same working directory.
![]() | ccsboardinfo | cexpr | ![]() |
| © 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 |