The following reference tables for Stateflow® API properties and methods have these columns:
Name — The name of the property or method.
To access or set a property value or to call a method, use its name in dot notation
along with a Stateflow object. Properties with multiple levels of hierarchy (such as the
LoggingInfo
and Props
properties of data
objects) must be set individually. For more information, see Access Properties and Methods of Stateflow Objects.
Type — The data type for the property. Some
property types are other Stateflow API objects. For example, the Machine
property of an
object is the Stateflow.Machine
object that contains the
object.
Access — An access type for the property.
RW (read/write): You can access or set the value of these properties by using the Stateflow API.
RO (read-only): These properties are set by the Stateflow software.
Description — A description of the property or method.
Objects — The types of objects that have this property or method. The object types are listed as: Annotation (A), Atomic Box (AB), Atomic Subchart (AS), Box (B), Chart (C), Clipboard (CB), Data (D), Event (E), Editor (ED), Graphical Function (GF), Junction (J), Machine (M), MATLAB® Function (MLF), Message (MSG), Root (R), State (S), Simulink® Based State (SBS), Simulink Function (SLF), State Transition Table (STT), Transition (T), Truth Table (TT), and Truth Table Function (TTF).
Method | Description | Objects |
---|---|---|
classhandle | Return a read-only handle to the schema class of this object type. | |
defaultTransitions | Return the default transitions at the top level of containment of this object. | |
disp | Display all properties and values for this object. | |
find | Find all objects inside this object that match the specified criteria. | A AB AS B C CB D E ED GF J M MLF MSG R S SBS SLF STT T TT TTF |
get | Return the value of the specified property for this object. | A AB AS B C CB D E ED GF J M MLF MSG R S SBS SLF STT T TT TTF |
help | Display all properties and descriptions for this object. | |
innerTransitions | Return an array of the transitions that originate in this object and terminate on a contained object. | |
methods | Display all methods for this object. | |
outerTransitions | Return an array of the transitions that exit the outer edge of this object and terminate on an object outside the containment of this object. | |
set | Set the value of the specified property for this object. | A AB AS B C CB D E ED GF J M MLF MSG R S SBS SLF STT T TT TTF |
sinkedTransitions | Return all inner and outer transitions whose destination is this object. | |
sourcedTransitions | Return all inner and outer transitions whose source is this object. | |
struct | Return a MATLAB structure that contains all of the property values for this object. | |
up | Return parent of this object. |
Method | Description | Objects |
---|---|---|
copy | Copy the specified objects to the clipboard. | |
delete | Delete this object. | |
pasteTo | Paste the contents of the clipboard to the specified container object. | |
setImage | Insert an image into an annotation. | |
Stateflow.Annotation | Create an annotation in a parent chart, state, box, or function. | N/A |
Stateflow.AtomicBox | Create an atomic box in a parent chart, state, box, or function. | N/A |
Stateflow.AtomicSubchart | Create an atomic subchart in a parent chart, state, or box. | N/A |
Stateflow.Box | Create a box in a parent chart, state, box, or function. | N/A |
Stateflow.Data | Create a data in a parent machine, chart, state, box, or function. | N/A |
Stateflow.EMFunction | Create a MATLAB function in a parent chart, state, box, or function. | N/A |
Stateflow.Event | Create an event in a parent chart, state, or box. | N/A |
Stateflow.Function | Create a graphical function in a parent chart, state, box, or function. | N/A |
Stateflow.Junction | Create a junction in a parent chart, state, box, or function. | N/A |
Stateflow.Message | Create a message in a parent chart, state, or box. | N/A |
Stateflow.SimulinkBasedState | Create a Simulink based state in a parent chart, state, or box. | N/A |
Stateflow.SLFunction | Create a Simulink function in a parent chart, state, box, or function. | N/A |
Stateflow.State | Create a state in a parent chart, state, or box. | N/A |
Stateflow.Transition | Create a transition in a parent chart, state, box, or function. | N/A |
Stateflow.TruthTable | Create a truth table function in a parent chart, state, box, or function. | N/A |
Property | Type | Access | Description | Objects |
---|---|---|---|---|
| Double | RW | Delay value to slow down the animation for charts in this machine. Default
value is 0 . | |
| Boolean | RW | Enable animation for charts in this machine. Default value is
true . | |
| Boolean | RW | Set the End of Broadcast breakpoint of this event. Default
value is false . This property applies only to local
events. | |
| Boolean | RW | Set the During State breakpoint for this state or the
During Function Call breakpoint for this function. Default
value is false . | |
| Boolean | RW | Set the On State Entry breakpoint for this state or the
On Chart Entry breakpoint for this chart. Default value is
false . | |
| Boolean | RW | Set the On State Exit breakpoint for this state. Default
value is false . | |
| Boolean | RW | Set the Start of Broadcast breakpoint of this event.
Default value is false . This property applies only to local or
input events. | |
| Boolean | RW | Set the When Transition is Tested breakpoint for this
transition. Default value is false . | |
| Boolean | RW | Set the When Transition is Valid breakpoint for this
transition. Default value is false . | |
| Boolean | RW | Set this state or data object as a Stateflow test point. Default value is false . See Monitor Test Points in Stateflow Charts. | |
| Boolean | RW | Explicitly comment out this object. Default value is
false . Equivalent to right-clicking the object and selecting
Comment Out. | |
| Boolean | RO | Indicates if this object is implicitly commented out. An object is implicitly commented out when you comment out a superstate in its hierarchy. |
Property | Type | Access | Description | Objects |
---|---|---|---|---|
Subviewer | Chart , State , or
Box | RO | Chart or subchart where you can graphically view this object. | |
| Boolean | RW | Indicates if the editor is displaying this chart or state transition table. | |
| Double | RW | Magnification level of this chart in the editor. A value of
1 corresponds to a magnification of 100%. |
Method | Description | Objects |
---|---|---|
dialog | Open the properties dialog box for this object. | |
fitToView | Zoom in on this object in the editor. | |
highlight | Highlight this object in the chart. | |
view | Zoom in and select this object. If appropriate, display its contents in the Stateflow Editor, the Model Explorer, the MATLAB Editor. | |
zoomIn | Zoom in on the Stateflow chart that contains this Editor object. | ED |
zoomOut | Zoom out on the Stateflow chart that contains this Editor object. | ED |
Property | Type | Access | Description | Objects |
---|---|---|---|---|
AutoBackgroundColor | Boolean | RW | Use the automatic background color for this annotation. Default value is
true . | |
AutoForegroundColor | Boolean | RW | Use the automatic foreground text color for this annotation. Default value is
true . | |
BackgroundColor | Numeric vector | RW | Background color for this annotation. Numeric vector [r g
b] that specifies the red, green, and blue values of the color
normalized to the range 0.0 to 1.0. Default value is [1 1
1] . | |
| Numeric vector | RW | Background color for this chart or for the automatically generated chart for
this state transition table. Numeric vector [r g b] that
specifies the red, green, and blue values of the color normalized to the range 0.0
to 1.0. Default value is [1 0.9608 0.8824] . | |
| Numeric vector | RW | Color for errors in this chart or state transition table. Numeric vector
[r g b] that specifies the red, green, and blue values of the
color normalized to the range 0.0 to 1.0. Default value is [1 0
0] . | |
| Numeric vector | RW | Foreground color for this annotation. Numeric vector [r g
b] that specifies the red, green, and blue values of the color
normalized to the range 0.0 to 1.0. Default value is [0 0
0] . | |
| Numeric vector | RW | Color for junctions in this chart or in the automatically generated chart for
this state transition table. Numeric vector [r g b] that
specifies the red, green, and blue values of the color normalized to the range 0.0
to 1.0. Default value is [0.6824 0.3294 0] . | |
| Numeric vector | RW | Color for state boxes in this chart or in the automatically generated chart
for this state transition table. Numeric vector [r g b] that
specifies the red, green, and blue values of the color normalized to the range 0.0
to 1.0. Default value is [0 0 0] . | |
| Numeric vector | RW | Color for state labels in this chart or in the automatically generated chart
for this state transition table. Numeric vector [r g b] that
specifies the red, green, and blue values of the color normalized to the range 0.0
to 1.0. Default value is [0 0 0] . | |
| Numeric vector | RW | Color for transitions in this chart or in the automatically generated chart
for this state transition table. Numeric vector [r g b] that
specifies the red, green, and blue values of the color normalized to the range 0.0
to 1.0. Default value is [0.2902 0.3294 0.6039] . | |
Transition LabelColor | Numeric vector | RW | Color for transition labels in this chart or in the automatically generated
chart for this state transition table. Numeric vector [r g b]
that specifies the red, green, and blue values of the color normalized to the
range 0.0 to 1.0. Default value is [0.2902 0.3294
0.6039] . |
Property | Type | Access | Description | Objects |
---|---|---|---|---|
Font. Angle | Enum | RW | Font angle for the text in this annotation. Options are
'ITALIC' or 'NORMAL' (default). | A |
Font. Name | Character vector | RO | Font for the text in this annotation. The StateFont.Name
property of the chart that contains the annotation sets the value of this
property. | A |
Font. Size | Double | RW | Font size for the text in this annotation. The
StateFont.Size property of the chart that contains the
annotation sets the initial value of this property. | A |
Font. Weight | Enum | RW | Font weight for the text in this annotation. Options are
'BOLD' or 'NORMAL' (default). | A |
| Double | RW | Font size for the label of this object. The StateFont.Size
property of the chart that contains the object sets the initial value of this
property. | |
| Enum | RW | Font angle for the state labels in this chart or in the automatically
generated chart for this state transition table. Options are
'ITALIC' or 'NORMAL' (default). | |
| Character vector | RW | Font for the state labels in this chart or in the automatically generated
chart for this state transition table. Default value is
'Helvetica' . | |
| Integer | RW | Font size for the state labels in this chart or in the automatically
generated chart for this state transition table. Default value is
12 . | |
| Enum | RW | Font weight for the state labels in this chart or in the automatically
generated chart for this state transition table. Options are
'BOLD' or 'NORMAL' (default). | |
| Enum | RW | Font angle for transition labels in this chart or in the automatically
generated chart for this state transition table. Options are
'ITALIC' or 'NORMAL' (default). | |
| Character vector | RW | Font for transition labels in this chart or in the automatically generated
chart for this state transition table. Default value is
'Helvetica' . | |
| Integer | RW | Font size for transition labels in this chart or in the automatically
generated chart for this state transition table. Default value is
12 . | |
| Enum | RW | Font weight for transition labels in this chart or in the automatically
generated chart for this state transition table. Options are
'BOLD' or 'NORMAL' (default). |
Property | Type | Access | Description | Objects |
---|---|---|---|---|
| Boolean | RO | Indicates if this object graphically intersects a box, state, or function. | |
| State , Box , or
Junction | RW | Destination state, box, or junction for this transition. Default value is
[] . | T |
| Numeric vector | RW | Position of the transition endpoint at its destination. Numeric vector
[x y] of coordinates relative to the upper left corner of the
chart. Default value is [40 40] . | T |
| Double | RW | Location of the transition endpoint at its destination. Numeric value between
0 and 12 that specifies a clock position. Default value is
0 . | T |
| Numeric vector | RW | Position and size of this label on this transition in the chart. Numeric
vector [left top width height] . Default value is [0 0
8 14] . | T |
| Numeric vector | RW | Coordinates of the midpoint of the transition. Numeric vector [x
y] of coordinates relative to the upper left corner of the chart.
Default value is [21 21] . | T |
| Numeric vector | RW | Position and size of this object in the chart. Numeric vector [left
top width height] . Default value depends on the object type. | |
| Numeric vector | RW | Position of the center of this junction. Numeric vector [x
y] of coordinates relative to the upper left corner of the parent
chart or state. Default value is [7 7] . | J |
| Integer | RW | Radius of this junction. Default value is 7 . | J |
| State , Box , or
Junction | RW | Source state, box, or junction of this transition. Default value is
[] . | T |
| Double | RW | Position of the transition endpoint at its source. Numeric vector [x
y] of coordinates relative to the upper left corner of the chart.
Default value is [2 2] . | T |
| Double | RW | Location of the transition endpoint at its source. Numeric value between 0
and 12 that specifies a clock position. Default value is
0 . | T |
| Numeric vector | RW | Position and size of the Stateflow editor window. Numeric vector [left top width
height] . | ED |
Property | Type | Access | Description | Objects |
---|---|---|---|---|
| Enum | RW | Alignment of the text in this annotation. Options are
'CENTER' , 'LEFT' (default), or
'RIGHT' . | A |
Condition | Character vector | RO | Text in the condition on this transition. The value of this property depends
on the LabelString property for the transition. See Specify Labels in States and Transitions Programmatically. | T |
ConditionAction | Character vector | RO | Text in the condition action on this transition. The value of this property
depends on the LabelString property for the transition. See
Specify Labels in States and Transitions Programmatically. | T |
DuringAction | Character vector | RO | Text in the during action in this state. The value of this
property depends on the LabelString property for the state. See
Specify Labels in States and Transitions Programmatically. This property is not supported in Moore
charts. | S |
EntryAction | Character vector | RO | Text in the entry action in this state. The value of this
property depends on the LabelString property for the state. See
Specify Labels in States and Transitions Programmatically. This property is not supported in Moore
charts. | S |
ExitAction | Character vector | RO | Text in the exit action in this state. The value of this
property depends on the LabelString property for the state. See
Specify Labels in States and Transitions Programmatically. This property is not supported in Moore
charts. | S |
| Boolean | RW | Fix the height of the annotation box. Options are:
| A |
| Boolean | RW | Fix the width of the annotation box. Options are:
| A |
| Numeric vector | RW | Space from the bounding box of the text to the borders of this annotation.
Numeric vector [left top right bottom] . Default value is
[0 0 0 0] . | A |
| Enum | RW | Specify how to interpret the contents of the Text property
in this annotation. Options are 'OFF' (default),
'RICH' , or 'TEX' . | A |
| Character vector | RW | Full label for this object. Default value depends on the object type. | |
MooreAction | Character vector | RO | Text in the action in this state. The value of this property depends on the
LabelString property for the state. See Specify Labels in States and Transitions Programmatically. This property is supported only in Moore
charts. For more information, see Design Rules for Moore Charts. | S |
OnAction | Cell array of character vectors | RO | Text in the {'trigger1','action1',...,'triggerN','actionN'} The
value of this property depends on the | S |
| Character vector | RO | Text for this annotation without formatting. | |
| Character vector | RW | Text for this annotation. Default value is '?' . | A |
TransitionAction | Character vector | RO | Text in the transition action on this transition. The value of this property
depends on the LabelString property for the transition. See
Specify Labels in States and Transitions Programmatically. | T |
Trigger | Character vector | RO | Text in the trigger on this transition. The value of this property depends on
the LabelString property for the transition. See Specify Labels in States and Transitions Programmatically. | T |
Property | Type | Access | Description | Objects |
---|---|---|---|---|
| Character vector | RW | Description of this object. Default value is '' . | |
| Character vector | RW | Document link for this object. Default value is '' . | |
| Character vector | RO | Full path name of file that contains the Simulink model for this machine. Default value is
'' . | M |
| Integer | RO | Unique identifier that distinguishes this object from other objects in the model. | |
| Character vector | RO for RW for all other objects | Name of this object. Default value depends on the object type. | |
Path | Character vector | RO | Location of the parent of this object in the model hierarchy. | |
| Any Type | RW | Tag for this object. Holds data of any type. Default value is
[] . |
Property | Type | Access | Description | Objects |
---|---|---|---|---|
| Enum | RW | Activation method for this chart. Options are 'CONTINUOUS' ,
'DISCRETE' , or 'INHERITED' (default). See
Update Method. | |
| Character vector | RW | MATLAB code to be executed when a user single-clicks this note. Stateflow stores the code entered in this field with the chart. See Associate a Click Function with an Annotation for more information. | |
| Character vector | RW | MATLAB code to be executed before deleting this note. See Annotation Callback Functions. | |
EmlDefaultFimath | Enum | RW | Default
This property applies only to charts that use MATLAB as the action language. | |
| Boolean | RW | Initialize the state configuration of this chart at time zero instead of at the
first input event. Default value is false . See Execution of a Chart at Initialization. | |
| Boolean | RW | Export graphical functions at the chart level to other blocks in the
Simulink model. Default value is false . See Export Stateflow Functions for Reuse. | C |
| Boolean | RW | Create an active state data output port for this chart or state. Default value
is false . See Monitor State Activity Through Active State Data. | |
InitializeOutput | Boolean | RW | Apply the initial value of the output data every time this chart wakes up.
Default value is false . See Initialize outputs every time chart wakes up. | |
InputFimath | Character vector | RW | Specify the
This property applies only when the
| |
IsLink | Boolean | RO | Indicates if this object is a library link. | |
LoadFcn | Character vector | RW | MATLAB code to be executed when the model containing this note is loaded. See Annotation Callback Functions. | |
OutputData | Data | RO | Active state data object for this chart or state. This property applies only
when the HasOutputData property for this object is
true . See Monitor State Activity Through Active State Data. | |
| Character vector | RW | Indicates the monitoring mode for the active state output data.
This property applies only when the
| |
| Integer | RW | Port index for this data object, event, or message. This property applies only to input and output data, events, and messages. | |
| Character vector | RW | Sample time for activating this chart. Default value is
'-1' . This property applies only when the
ChartUpdate property for this chart is
'DISCRETE' . | |
StatesWhenEnabling | Enum | RW | Specify the behavior of states when a function-call input event reenables this chart. Options are:
This property applies only when the chart contains function-call input events. See Control States in Charts Enabled by Function-Call Input Events. | |
| Boolean | RW | Use strong data typing when this chart interfaces with Simulink input and output signals. Default value is true .
This property applies only to state transition tables that use C as the action
language. See Use strong data typing with Simulink I/O. | |
TreatAsFi | Enum | RW | Treat inherited fixed-point and integer signals as Fixed-Point Designer™
This property applies only to charts that use MATLAB as the action language. | |
| Boolean | RW | Use the contents of the Text property as the click function
for this annotation. Default value is false . | A |
Property | Type | Access | Description | Objects |
---|---|---|---|---|
LoggingInfo. DataLogging | Boolean | RW | Enable signal logging for this state or data object. Default value is
false . | |
LoggingInfo. DecimateData | Boolean | RW | Limit the amount of data logged by skipping samples. Uses the interval
specified by the LoggingInfo.Decimation property of this state or
data object. Default value is false . | |
LoggingInfo. Decimation | Integer | RW | Decimation interval. Default value is 2 . This value means
the chart logs every other sample of this state or data object. | |
LoggingInfo. LimitDataPoints | Boolean | RW | Limit the number of data points to log. Uses the value specified by the
LoggingInfo.MaxPoints property of this state or data object.
Default value is false . | |
LoggingInfo. MaxPoints | Integer | RW | Maximum number of data points to log. Default value is 5000 .
This value means the chart logs the last 5000 data points generated by the
simulation for this state or data object. | |
LoggingInfo. NameMode | Enum | RW | Source of the signal name used to log this state or data object. Options are:
| |
LoggingInfo. LoggingName | Character vector | RW | Custom signal name used for logging this state or data object. |
Property | Type | Access | Description | Objects |
---|---|---|---|---|
ActionLanguage | Enum | RW | Action language used to program this chart. Options are
'C' or 'MATLAB' (default). See Differences Between MATLAB and C as Action Language Syntax. | |
| Character vector | RO | Date of creation of this machine. | M |
| Character vector | RW | Creator of this machine. Default value is
'Unknown' . | M |
| Boolean | RW | Indicates if this chart or the Simulink model for this machine has changed since being opened or saved. | |
EnableBitOps | Boolean | RW | Use C-bit operations in state and transition actions in this chart. Default
value is false . This property applies only to charts that use C
as the action language. See Supported Operations for Chart Data. | |
EnableNonTerminalStates | Boolean | RW | Use super step semantics for this chart. Default value is
false . See Super Step Semantics. | |
EnableZeroCrossings | Boolean | RW | Use zero-crossing detection on state transitions in this chart. Default value
is true . This property applies only when the
ChartUpdate property for this chart is set to
'CONTINUOUS' . See Disable Zero-Crossing Detection. | |
GeneratePreprocessorConditions | Boolean | RW | Indicates if the generated code for a chart with variant conditions includes a preprocessor conditional statement. This option is only valid when generating code with Embedded Coder®. | |
| Boolean | RO | Equivalent to property Locked . Used internally to prevent
changes in this chart or machine during simulation. | |
| Boolean | RO | Indicates if the Simulink model for this machine builds a library and not an application.
Default value is false . | M |
| Boolean | RW | Prevents changes in this chart or in the Simulink model for this machine. Default value is
false . | |
| Character vector | RW | Comment text for recording modifications to the Simulink model that defines this machine. Default value is
'' . | M |
NonTerminal MaxCounts | Integer | RW | Maximum number of transitions this chart can take in one super step. Default
value is 1000 . This property applies only when the
EnableNonTerminalStates property for this chart is
true . See Super Step Semantics. | |
NonTerminal UnstableBehavior | Enum | RW | Behavior during simulation if this chart exceeds the maximum number of
transitions specified in the
This property applies only when the
| |
StateMachineType | Enum | RW | Type of state machine semantics. Options are 'Classic'
(default), 'Mealy' , or 'Moore' . See Overview of Mealy and Moore Machines. | |
| Character vector | RW | Comment text for recording the version of the Simulink model that defines this machine. Default value is
'none' . | M |
Property | Type | Access | Description | Objects |
---|---|---|---|---|
CompiledSize | Character vector | RO | Size of this data object as determined by the compiler. | |
CompiledType | Character vector | RO | Type of this data object as determined by the compiler. | |
| Enum | RW | Type of this data object or message data.
For more information, see the section Add Data in Create Charts by Using the Stateflow API. | |
InitializeMethod | Enum | RW | Method for initializing the value of this data object. Options depend on the scope of the data:
| D |
| Enum | RW | Type of priority queue for this message. Options are:
This property applies only when the | MSG |
| Integer | RW | Port index for this data object, event, or message. This property applies only to input and output data, events, and messages. | |
| Character vector | RW | Index for the first element of this data object or message data. Default
value is 0 . This property applies only to array data in charts
that use C as the action language. | |
Props. Array. IsDynamic | Boolean | RW | Allow the size of this data object to change at run time. Default value is
false . Equivalent to the Variable
Size check box in the Data properties dialog box. See Declare Variable-Size Data in Stateflow Charts. | |
| Character vector | RW | Size of this data object or message data. Default value is
'0' . See Specify Size of Stateflow Data. | |
| Enum | RW | Enable this data object or message data to take complex values. Options are
'On' or 'Off' (default). See Complex Data in Stateflow Charts. | |
| Enum | RW | Enable this data object or message data to accept frame-based signals. Options are:
| |
| Character vector | RW | Initial value of this data object or message data. Default value is
'' . | |
| Character vector | RW | Maximum value for this data object. Default value is
'' . | |
| Character vector | RW | Minimum value for this data object. Default value is
'' . | |
| Boolean | RW | Specify if this data object resolves to a Simulink.Signal
object that you define in the model or base workspace. Default value is
false . See Resolve Data Properties from Simulink Signal Objects. | |
| Character vector | RW | Name of the Simulink.Bus object that defines this data
object or message data. This property applies only when the
Props.Type.Method property of this data object is
'Bus Object' . See Access Bus Signals Through Stateflow Structures. | |
| Character vector | RW | Name of the enumerated type that defines this data object or message data.
This property applies only when the Props.Type.Method property
of this data object is 'Enumerated' . See Reference Values by Name by Using Enumerated Data. | |
| Character vector | RW | Expression that evaluates to a data type for this data object or message
data. This property applies only when the Props.Type.Method
property of this data object is 'Expression' . See Specify Data Properties by Using MATLAB Expressions. | |
| Character vector | RW | Bias for this data object. This property applies only to fixed-point data
with the Props.Type.Fixpt.ScalingMode property set to
'Slope and bias' . See Fixed-Point Data in Stateflow Charts. | |
| Character vector | RW | Location of the binary point for this data object. This property applies only
to fixed-point data when the Props.Type.Fixpt.ScalingMode
property is 'Binary point' . See Fixed-Point Data in Stateflow Charts. | |
| Boolean | RW | Prevents replacement of the fixed-point type of this data object with
an autoscaled type chosen by the Fixed-Point Tool (Fixed-Point Designer). Default value is
| |
| Enum | RW | Method for scaling this data object. Options are 'Binary
point' , 'Slope and bias' , or
'None' (default). This property applies to fixed-point data.
See Fixed-Point Data in Stateflow Charts. | |
| Character vector | RW | Slope for this data object. This property applies only to fixed-point data
when the Props.Type.Fixpt.ScalingMode property set to
'Slope and bias' . See Fixed-Point Data in Stateflow Charts. | |
| Enum | RW | Method for setting the type of this data object or message data.
Equivalent to the Mode field of the Data Type Assistant in the Data properties dialog box. See Specify Type of Stateflow Data. | |
| Boolean | RW | Specify if this data object is signed. Default value is
true . This property applies only to fixed-point data. See
Fixed-Point Data in Stateflow Charts. | |
| Character vector | RW | Bit size of the word that holds the quantized integer of this data object. This property applies only to fixed-point data. See Fixed-Point Data in Stateflow Charts. | |
| Character vector | RW | Units of measurement for this data object. Default value is
'' . See Specify Units for Stateflow Data. | |
QueueCapacity | Integer | RW | Length of the internal queue for this message. Default value is
10 . This property applies only to input and local messages.
For more information, see Message Queue Properties. | MSG |
QueueOverflowDiagnostic | Enum | RW | Level of diagnostic action when the number of incoming messages exceeds the
queue capacity for this message. Options are 'Error' (default),
'Warning' , or 'None' . This property
applies only to input and local messages. For more information, see Message Queue Properties. | MSG |
QueueType | Enum | RW | Indicates the order in which messages are removed from the receiving queue. Options are:
This property applies only to input and local messages. For more information, see Message Queue Properties. | MSG |
SaturateOn IntegerOverflow | Boolean | RW | Specify the behavior of integer overflows in this chart. Options are:
For more information, see Handle Integer Overflow for Chart Data. | |
| Boolean | RW | Assign the value of this data object to a variable of the same name in the
MATLAB base workspace at the end of the simulation. Default value is
false . See Save Final Value to Base Workspace. | |
| Enum | RW | Scope of this data object, event, or message.
| |
SupportVariableSizing | Boolean | RW | Support input and output data that vary in dimension when simulating this
chart. Default value is true . See Declare Variable-Size Data in Stateflow Charts. | |
| Enum | RW | Type of trigger associated with this event. Options depend on the scope of the event:
This property does not apply to local events. | E |
| Boolean | RW | Indicates that the value of this data object can be modified during
simulation. Default is true . This property applies only to
parameter data. | |
UseInternalQueue | Boolean | RW | Indicates that the Stateflow chart maintains an internal receiving queue for this input message.
Default value is true . This property applies only to input
messages. For more information, see Message Queue Properties. |
Property | Type | Access | Description | Objects |
---|---|---|---|---|
| Cell array of character vectors | RW | Action table for this truth table. Default value is
[] . | |
| Cell array of character vectors | RW | Condition table for this truth table. Default value is
[] . | |
ContentPreviewEnabled | Boolean | RW | Display a preview of the contents of this Simulink based state at the Stateflow level. Default value is
true . | SBS |
Decomposition | Enum | RW | State decomposition at the top level of containment in this object. Options
are 'EXCLUSIVE_OR' (default) and
'PARALLEL_AND' . | |
ExecutionOrder | Integer | RW | Order in which this state wakes up in parallel (AND) decomposition or this
transition executes when its source is active. This property applies only when the
UserSpecifiedStateTransitionExecutionOrder property of the
chart that contains the object is true . | |
InlineOption | Character vector | RW | Specify how this function or state appears in generated code. Options are:
For more information, see Inline State Functions in Generated Code (Simulink Coder). | |
IsGrouped | Boolean | RW | Specify if this object is a group. Default value is false .
See Copy by Grouping. | |
IsSubchart | Boolean | RW | Specify if this object is a subchart. Default value is
false . | |
IsVariant | Boolean | RW | Indicates if this transition is a variant transition. | T |
Language | Enum | RW | Action language used to program the truth table function. Options are
C or MATLAB (default). See Differences Between MATLAB and C as Action Language Syntax. | TTF |
| Enum | RW | Level of diagnostic action when this truth table is overspecified. Options
are 'Error' (default), 'Warning' , or
'None' . See Correct Overspecified and Underspecified Truth Tables. | |
Script | Character vector | RW | Code for this MATLAB function. To specify the value of this property, create a
character vector by calling the str = sprintf('function y=f(x) \n y=x+1;');
f.Script = str; | MLF |
| Enum | RW for junctions RO for states | Type for this junction or state.
| |
| Enum | RW | Level of diagnostic action when this truth table is underspecified. Options
are 'Error' (default), 'Warning' , or
'None' . See Correct Overspecified and Underspecified Truth Tables. |
sfclipboard
| sfnew
| sfroot