| Stateflow User's Guide | ![]() |
Custom Code Properties
The following properties control the custom code that you include with the Stateflow model.
| Property |
Return |
Access |
Description |
Objects |
CodegenDirectory |
String |
RW |
Directory to receive generated code. Applies only to targets other than sfun and rtw targets. |
X |
CustomCode |
String |
RW |
Custom code included at the top of the generated code. Equivalent to the entry for the Custom code included at the top of generated code selection of the Target Options dialog for this target. |
X |
CustomInitializer |
String |
RW |
Custom initialization code. Equivalent to the entry for the Custom initialization code (called from mdlInitialize) selection of the Target Options dialog for this target. Applies only to sfun and rtw targets. |
X |
CustomTerminator |
String |
RW |
Custom termination code. Equivalent to the entry for the Custom termination code (called from mdlTerminate) selection of the Target Options dialog for this target. Applies only to sfun and rtw targets. |
X |
UserIncludeDirs |
Boolean |
RW |
Custom include directory paths. Equivalent to the entry for the Custom include directory paths selection of the Target Options dialog for this target. |
X |
UserLibraries |
String |
RW |
Custom libraries. Equivalent to the entry for the Custom libraries selection of the Target Options dialog for this target. |
X |
UserSources |
String |
RW |
Custom source files. Equivalent to the entry for the Custom source files selection of the Target Options dialog for this target. |
X |
| ReservedNames |
String |
RW |
Comma- or space-separated list of names to not use in Stateflow generated code. Equivalent to the entry in the Reserved Names panel of the Target Options dialog. |
X |
| Code Generation Properties | Display Control | ![]() |
© 1994-2005 The MathWorks, Inc.