Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop Embedded Coder   

Ensuring Delimiter Is Specified for All #Includes

Understanding the purpose of this procedure requires understanding the Header file property of a data object, described in Parameter and Signal Property Values, and applied in Creating mpt Data Objects with Data Object Wizard. For a particular data object, you can specify as the Header file property value a .h filename where that data object will be declared. Then, in the IncludeFile section of the generated file, this .h file is indicated in a #include preprocessor directive.

Further, when specifying the filename as the Header file property value, you may or may not place it within the double-quote or angle-bracket delimiter. That is, you can specify it as filename.h, "filename.h", or <filename.h>. The code generator finds every data object for which you specified a filename as its Header file property value without a delimiter. By default, it assigns to each of these the double-quote delimiter.

This procedure allows you to specify the angle-bracket delimiter for these instead of the default double-quote delimiter. See the figure below.

  1. In the #include file delimiter field on the Data Placement pane of the Configuration Parameters dialog box, select #include <header.h> instead of the default #include "header.h".

  2. Click Apply.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS