Stateflow    
Deployment Properties

Deployment properties affect how code is generated and deployed from a Stateflow chart.

See Deployment Methods.

For a key to the abbreviations for object types in the Object column, see Reference Table Column Descriptions.

Property
Type
Acc
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 n 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
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
DataType
Enum
RW
Data type of this data. Can have one of the following possible values: 'boolean', 'uint8', 'int8', 'uint16', 'int16', 'uint32', 'int32', 'single', 'double' and 'fixpt'. Equivalent to an entry in the Type column for this data in Explorer or the Type field in the properties dialog for this data.
D
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
ExecuteAt
Initialization
Boolean
RW
If set to true, initialize this chart's state configuration at time zero instead of first input event. Equivalent to selecting the Execute (enter) Chart at Initialization check box in the chart properties dialog.
C
ExportChart
Functions
Boolean
RW
If set to true, graphical functions at chart level are made global. Equivalent to selecting the Export Chart Level Graphical Functions (Make Global) check box in the chart properties dialog.
C
FixptType.
Bias
Double
RW
The Bias value for this fixed-point type.
D
FixptType.
FractionalSlope
Double
RW
The Fractional Slope value for this fixed-point type.
M
FixptType.
RadixPoint
Integer
RW
The power of two specifying the radix point location for this fixed-point type.
C
FixptType.
BaseType
Enum
RW
The size and sign of the base for the quantized integer, Q, of this fixed-point type.
D
isLibrary
Boolean
RO
If true, specifies that the current model builds a library and not an application.
M
SaveToWorkspace
Boolean
RW
If set to true, this data is saved to the MATLAB workspace. Equivalent to selecting the ToWS column entry for this data in the Explorer or selecting the Save final value to base workspace field in the properties dialog for this data.
D
StrongDataTyping
WithSimulink
Boolean
RW
If set to true, set strong data typing with Simulink I/O. Equivalent to the Use Strong Data Typing with Simulink I/O check box in the chart properties dialog.
C
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


  Behavioral Properties Utility and Convenience Properties