Stateflow    

Specifying Graphical Function Properties

You can set properties for a graphical function through its shortcut menu as follows:

  1. Right-click the graphical function box.
  2. Select Properties from the resulting submenu.
  1. The Function Properties dialog appears as shown:

The fields in the Function Properties dialog are as follows:

Field
Description
Name
Function name; read-only; click this hypertext link to bring the function to the foreground.
Parent
Parent of this function; a / character indicates the Stateflow diagram is the parent; read-only; click this hypertext link to bring the parent to the foreground.
Debugger breakpoints
Select the check box to set a breakpoint where the function is called. See Debugging and Testing for more information.
Function Inline Option
This option controls the inlining of this graphical function in generated code through the following selections:
  • Auto
    Stateflow decides whether or not to inline the function based on an internal calculation.
  • Inline
    Stateflow inlines the function as long as it is not exported to other charts and is not part of a recursion. A recursion exists if the function calls itself either directly or indirectly through another called function.
  • Function
    The function is not inlined.
Label
The function's label. Specifies the function's prototype. See Creating a Graphical Function for more information.
Description
Textual description/comment.
Document Link
Enter a URL address or a general MATLAB command. Examples are www.mathworks.com, mailto:email_address, and edit/spec/data/speed.txt.


  Exporting Graphical Functions Using Junctions in Stateflow Charts