| Stateflow |    | 
Calling Graphical Functions from Custom Code
To call a graphical function from your custom code:
- Create the graphical function at the root level of the chart that defines the function (see Creating a Graphical Function).
- Export the function from the chart that defines the function (see Exporting Graphical Functions).
- This option implicitly forces the chart and function names to be preserved.
- Include the generated header file chart_name.hat the top of your custom code, wherechart_nameis the name of the chart that contains the graphical function.
- The chart header file contains the prototypes for the graphical functions that the chart defines.
|   | Specifying Path Names in Custom Code Options |  | Starting the Build |  |