User`s guide

Using Custom Source Files in Generated Projects
The build process stores the project les in the directory
modelname_multilink in your MATLAB working d irectory, and shows the
project directory information in the MATLA B Command windo w.
The build process stores the project les in the directory
modelname_vdsplink in your MATLAB working directory, and shows the
project directory information in the MATLA B Command windo w.
7 Note the le name and location. You use this in f ormation to create your
custom replacement le.
Creating the Replacement File
To replace a le in a project during code generation, you need a new le with
thesamenamesavedinadifferentdirectory. Creating your re placement le
from the le to replace increases the chances that the generated code w ill
work properly with the new le. The new le must have all of the information
the nal project needs.
Follow these steps to create a letousetoreplaceageneratedle in your
project.
1 Determine the name of the le to replac e. Refer to Determining the Name
oftheFiletoReplace”onpage3-66forhowtodothis.
2 Locate the le to replace. Copy the le and save it with the same name in
a new directory.
3 Open your new le and edit the le to add or remove the informa tion to
change.
4 Save your changes to the le.
Replacing Generated Source Files with Custom Files
When You Generate Code
With the replacement le and location available, congure the b uild process to
use your replacement le. Parameters on the Targ et Preferences block dialog
boxallowyoutospecifythereplacementle to use. For more information
about the board custom code options, refer to Target PreferencesTarget
PreferencesTarget Preferences.
3-67