Stateflow User's Guide Previous page   Next Page

Code Generation Properties

The following properties control the code generated from the Stateflow charts in a model.

Property
Return
Access
Description
Objects
ApplyToAllLibs
Boolean
RW
If set to true, use settings in this target for all libraries. Equivalent to selecting the Use settings for all libraries check box in this target's Target Builder dialog.
X
CodeFlagsInfo
Array
RO
A MATLAB vector of structures containing information on code flag settings for this target. Each element in the vector is a MATLAB structure with information about a particular code flag. Each flag corresponds to a selection in the Coder Options dialog for this target. If you want to see information about the first flag for a Target object t, use the following commands:
  • cfi = t.CodeFlagsInfo
    disp(cfi(1))
    
If you want to quickly see the names of all the flags, do the following:
  • cfi.name
    
The Name member of the CodeFlagsInfo structure is shorthand for a longer expression in the Coder Options dialog. For example, the name 'comments' actually refers to the dialog setting Comments in generated code.
You use the name of a code flag to get and set the code flag value with the methods getCodeFlag and setCodeFlag. Changing the vector returned by CodeFlagsInfo does not change an actual flag.
X
EnableBitOps
Boolean
RW
If set to true, enable C-like bit operations in generated code for this chart. Equivalent to selecting the Enable C-like bit operations check box in the chart properties dialog.
C


Previous page  Code Generation and Build Methods Custom Code Properties Next page

© 1994-2005 The MathWorks, Inc.