| Stateflow User's Guide | ![]() |
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: If you want to quickly see the names of all the flags, do the following: 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 |
| Code Generation and Build Methods | Custom Code Properties | ![]() |
© 1994-2005 The MathWorks, Inc.