MATLAB Link for Code Composer Studio Development Tools | ![]() ![]() |
Close files in CCS IDE or an open RTDX channel
Syntax
Description
close(cc,'filename','type')
closes the file in CCS IDE identified by filename
of type 'type
'. type
identifies the type of file to close. This can be either project files when you use 'project'
for the type
option, or text files when you use 'text'
for the type
option. To close a specific file in CCS IDE, filename
must match exactly the name of the file to close. If you replace filename
with 'all'
, close
terminates every open file whose type matches the type
option. File types recognized by close
include these extensions.
When you replace filename
with the null entry []
, close
shuts the current active file window in CCS IDE. When you specify 'project'
for the type
option, it closes the active project.
Note
close does not save files before shutting them. Closing files can result in lost data if you have changed the files since you last saved them. Use save to ensure that your changes are preserved before you close files that are open.
|
close(rx,'
closes the channels specified by the strings channel1
','channel2
',...)
channel1
, channel2
, and so on as defined in rx
.
close(rx,'
closes the specified channel. When you set channel
')
channel
to 'all
'
, this function closes all the open channels associated with rx
.
To avoid conflicts, do not name channels "all" or "ALL."
Examples
Using close with Files and Projects
To clarify the different close
options, here are six commands that close open files or projects in CCS IDE.
When you plan to use RTDX to communicate with a target, you open and enable channels to the board and processor. For example, to communicate with the processor on your installed board, you use open
to set up a channel, as follows:
cc = ccsdsp('boardnum',1,'procnum',0) rx=cc.rtdx % Create an alias to the RTDX portion of this link. open(rx,'ichan','w') % Open a channel for write access. enable(rx,'ichan') % Enable the open channel for use.
After you finish using the open channel, you must close it to avoid difficulties later on.
Or to close all open channels, you could use
![]() | clear | configure | ![]() |