Stateflow    

Calling Graphical Functions from Custom Code

To call a graphical function from your custom code:

  1. Create the graphical function at the root level of the chart that defines the function (see Creating a Graphical Function).
  2. Export the function from the chart that defines the function (see Exporting Graphical Functions).
  1. This option implicitly forces the chart and function names to be preserved.

  1. Include the generated header file chart_name.h at the top of your custom code, where chart_name is the name of the chart that contains the graphical function.
  1. 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