User`s guide
Using Custom Source Files in Generated Projects
2 In the Board custom code options, select the type of file to replace—Source
files
or Libraries.
3 Enter the name of your replacement file and path in the text field.
The build proces s recog nize s two directory path tokens:
•
$MATLAB to refer to your MA TLAB root directory
•
$install_dir to refer to the root of your IDE installation.
4 Click OK to close the di alog box.
5 Open the configuration parameters for your model and select the Build
action tousetobuildyourmodel.
6 From the Source code replacement list, select warning or error to see
messages when the build process replaces files.
7 Click OK to save your configuration.
8 Return to the m odel wi ndow and press Ctrl+B to build your project. The
generated project contains your replacement fi le instead of generating the
matching file.
3-69