User`s guide
Using Custom Source Files in Generated Projects
The build process stores the project files 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 files 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 file name and location. You use this in f ormation to create your
custom replacement file.
Creating the Replacement File
To replace a file in a project during code generation, you need a new file with
thesamenamesavedinadifferentdirectory. Creating your re placement file
from the file to replace increases the chances that the generated code w ill
work properly with the new file. The new file must have all of the information
the final project needs.
Follow these steps to create a filetousetoreplaceageneratedfile in your
project.
1 Determine the name of the file to replac e. Refer to “Determining the Name
oftheFiletoReplace”onpage3-66forhowtodothis.
2 Locate the fi le to replace. Copy the file and save it with the same name in
a new directory.
3 Open your new file and edit the file to add or remove the informa tion to
change.
4 Save your changes to the fi le.
Replacing Generated Source Files with Custom Files
When You Generate Code
With the replacement file and location available, configure the b uild process to
use your replacement file. Parameters on the Targ et Preferences block dialog
boxallowyoutospecifythereplacementfile to use. For more information
about the board custom code options, refer to Target PreferencesTarget
PreferencesTarget Preferences.
3-67