Stateflow    

Exporting Graphical Functions

You can export a chart's root-level graphical functions. Exporting the functions extends their scope to include all other charts in the same model. To export a chart's root-level functions, check Export Chart Level Functions on the chart's Chart Properties dialog box (see Specifying Chart Properties).

When parsing a chart, Stateflow does not check to see whether the chart's usage of exported functions is correct. It is thus up to you to see ensure that the chart passes arguments of the correct type to an exported function and assigns the return value of the function to a variable of the correct type. Failure to use the function correctly can cause link or runtime errors.


 Invoking Graphical Functions Specifying Graphical Function Properties